Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Copying and Running PERL SCRIPTS in Parallel

by salva (Monsignor)
on May 21, 2013 at 07:28 UTC ( #1034469=note: print w/ replies, xml ) Need Help??


in reply to Copying and Running PERL SCRIPTS in Parallel

You have to call the run method at the end, once you have declared all the actions that should be performed by the module:

my $pssh = Net::OpenSSH::Parallel->new(); $pssh->add_host($_) for @hosts; $pssh->push('*', scp_put => '/root/cpu.pl', '/root/'); $pssh->push('*', scp_put => '/root/memory.pl', '/root/'); $pssh->run;


Comment on Re: Copying and Running PERL SCRIPTS in Parallel
Select or Download Code
Re^2: Copying and Running PERL SCRIPTS in Parallel
by rahulruns (Beadle) on May 21, 2013 at 08:35 UTC

    Thank You All for pointing out the mistake (silly mistake). It is working now and I hope to resolve my issues

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034469]
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: (11)
As of 2014-11-28 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls