in reply to Re: Net::OpenSSH - Long running remote perl script doesnt bring back the control
in thread Net::OpenSSH - Long running remote perl script doesnt bring back the control
Got this working now.Thanks first of all for replying. This was my first post here !!!
The problem was in using 'fork' inside the remote perl that was getting executed. Earlier I fork'ed the process in the remote perl and left them in the same shell. This time, I fork'ed the process and ran them as background processes.
$pid = fork(); if ( $pid == 0 ) {system("$cmd &") || warn ("Could not exec $cmd.\n"); + exit 0;}
|
|---|