in reply to channel SSH2
Nohup puts the programs as background processes. Untested: :-)
Just another idea to play with.my $chan = $ssh2->channel(); $chan->blocking(0); $chan->shell(); $chan->exec("nohup /home/zentara/perlplay/net/zzsleep > foo.out 2> foo +.err < /dev/null &"); $chan->exec("nohup /home/zentara/perlplay/net/zzsleep1 > foo1.out 2> f +oo1.err < /dev/null &"); # etc etc $chan->send_eof;
|
|---|