in reply to Net::OpenSSH::Parallel documentation
# with a coderef $pssh->add_host($host, user =>'root', passwd=>'access', on_error=> sub { my ($pssh, $label, $error, $task) = @_; $error == OSSH_JOIN_FAILED and do { ... }; $error == OSSH_ABORTED and do { ... }; $error == OSSH_GOTO_FAILED and do { ... }; }, ); # or with constants $pssh->add_host($label, on_error => OSSH_ON_ERROR_IGNORE); $pssh->add_host($label, on_error => OSSH_ON_ERROR_ABORT_ALL);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::OpenSSH::Parallel documentation
by ashok.g (Beadle) on Apr 10, 2012 at 14:48 UTC | |
by repellent (Priest) on Apr 10, 2012 at 16:40 UTC | |
|
Re^2: Net::OpenSSH::Parallel documentation
by ashok.g (Beadle) on Apr 16, 2012 at 22:32 UTC |