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;

Replies are listed 'Best First'.
Re^2: Copying and Running PERL SCRIPTS in Parallel
by rahulruns (Scribe) 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