Net::ParSCP - Secure transfer of files between clusters via SSH
# One liner: transfers 'file' to all # the machines in cluster 'clu' but 'june' $ perl -MNet::ParSCP \ -e 'parpush(sourcefile=>q{file}, destination=>q{clu-june:/tmp/})'
Functions in this module are for the implementation of the script parpush.
The main function is parpush:
parpush
($okh, $pid) = parpush( configfile => $configfile, destination => [ 'cluster1:/path1', 'cluster2:/path2' ], scp => $scp, scpoptions => $scpoptions, sourcefile => $sourcefile, );
only sourcefile and destination are required. The other arguments are optional.
sourcefile
destination
In a list context returns two hash references ($okh, $pid).
($okh, $pid)
%$okh
Is a hash with keys the names of the machines considered during the connections. The value is true (1) if all the connections with the corresponding machine were closed succesfully, false otherwise.
%$pid
Is a hash with keys the names of the machines considered during the connection. The value is an anonymous list with the process identifiers of the connections (undef if the fork failed) to that machine.
undef
parpush exec_cssh help version usage $VERBOSE $DRYRUN
Set::Scalar
Cluster ssh: cssh http://sourceforge.net/projects/clusterssh/
Project C3 http://www.csm.ornl.gov/torc/C3/
Net::CascadeCopy
Casiano Rodriguez-Leon <casiano.rodriguez.leon@gmail.com>
Copyright (C) 2009-2009 by Casiano Rodriguez-Leon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Net::ParSCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ParSCP
CPAN shell
perl -MCPAN -e shell install Net::ParSCP
For more information on module installation, please visit the detailed CPAN module installation guide.