rahulruns has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to copy PERL SCRIPTS to hosts and then I need to run them in parallel. I am using Net::OpenSSH::Parallel to copy and run the commands. But I am not able to even copy the commands. It is a password less ssh. I am able to generate and store the host list in an array hosts.
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/');
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Copying and Running PERL SCRIPTS in Parallel
by salva (Canon) on May 21, 2013 at 07:28 UTC | |
by rahulruns (Scribe) on May 21, 2013 at 08:35 UTC | |
Re: Copying and Running PERL SCRIPTS in Parallel
by hdb (Monsignor) on May 21, 2013 at 07:26 UTC | |
Re: Copying and Running PERL SCRIPTS in Parallel
by tobyink (Canon) on May 21, 2013 at 07:11 UTC | |
by rahulruns (Scribe) on May 21, 2013 at 07:15 UTC |
Back to
Seekers of Perl Wisdom