Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Running PERL SCRIPTS in Parallel

by salva (Abbot)
on May 22, 2013 at 08:23 UTC ( #1034702=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Running PERL SCRIPTS in Parallel
in thread Running PERL SCRIPTS in Parallel

I have corrected the code.

my @pids = map $ssh->spawn(@$_), @cmds;
is equivalent to ...
my @pids; for my $cmd (@cmds) { push @pids, $ssh->spawn(@$cmd); }
It uses the Net::OpenSSH object passed to the sub to start all the commands in parallel.


Comment on Re^3: Running PERL SCRIPTS in Parallel
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-07-31 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls