Help for this page

Select Code to Download


  1. or download this
    $pm->run_on_finish(sub {
        my ($pid, $exit_code, $ident) = @_;       
    ...
            $ident, $pid, $exit_code;
        insert_into_db(\$dbh, $host, $action, $exit_code);      
    });
    
  2. or download this
    for my $host (@hosts) {
        if (!$pm->start("cmd1 on $host")) {
    ...
            _exit($!); 
        }
    }
    
  3. or download this
    for my $host (@hosts) {
        for (
    ...
            _exit($!); 
        }
    }