in reply to Re^2: Running PERL SCRIPTS in Parallel
in thread Running PERL SCRIPTS in Parallel
I have corrected the code.
is equivalent to ...my @pids = map $ssh->spawn(@$_), @cmds;
It uses the Net::OpenSSH object passed to the sub to start all the commands in parallel.my @pids; for my $cmd (@cmds) { push @pids, $ssh->spawn(@$cmd); }
|
---|
In Section
Seekers of Perl Wisdom