Site icon Haktan Suren, PhD

Execute a program runs background via SSH

This is extremely helpful to automate running some program through bash

Usage:

ssh -f username@ipadress "cd some/directory;" program.extension

Example:

ssh -f hsuren@123.123.12.12 "cd home/executables/bin;" haktan.pl

Output:

This will first ssh to given address, cd to the directory and run haktan.pl file and produce PID and exit.

Enjoy!

Exit mobile version