Help for this page

Select Code to Download


  1. or download this
    ...
    use File::Basename;
    my $file = fileparse($path);
    $scp->scp($path, "$remote->{user}\@$remote->{host}:$destination/$file"
    +);
    
  2. or download this
    use Net::OpenSSH::Parallel;
    
    ...
    for my $host (keys %$remotehosts) {
      $pssh->get_error($host) and print STDERR "Unable to copy file $path 
    +to $host"
    }