NolanPL has asked for the wisdom of the Perl Monks concerning the following question:
I have a function in place which ssh's into a remote machine and executes a command, this has worked great, but now I have a process that has to be run in the background on the remote machine, and the function waits on the return value of the program like any system call does.
I send the command to the remote system as
system("ssh root@ip $command") where command is of the sort ./sleepwake (args) &
The command executes, but I need it to return a value and continue running. Any ideas?