Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w -T
    
    ...
    my $scp = "scp <file> <username>\@<IP Address>:<destinationpath>;
    
    $ssh->exec($scp) or die "SCP Process error: $!";
    
  2. or download this
    system('ssh <user>\@<IP> scp $file <user2>\@<Destination IP>:<destinat
    +ion path>');