trying to use this module now. but i guess i have a very basic issue:
currently i am running following in a loop for all hosts (and a inner loop for all commands for a host): my ($MFSSH) = Net::OpenSSH->new($HOST, user => $USER, password => $PASS, default_stderr_fh => $stderr_fh, default_stdout_fh => $stdout_fh, master_opts => [-o => 'StrictHostKeyChecking=no', -o => 'ConnectTimeout 10'], ); $EXITCODE = $MFSSH->error; next if ($EXITCODE ne "0"); #go to next host if ssh fails foreach $CMD (@MFCMDS){ chomp($CMD); ( @CMDRESULT, $CMDERR ) = $MFSSH->capture("$CMD"); } how can i use Net::OpenSSH::Parallel this script? i mean i understood creating a new instance like pssh in the module CPAN page, but not sure how to integrate it with the script i already have. thx in advance. Rajeev