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> foo1.err < /dev/null &"); # etc etc $chan->send_eof;