Help for this page

Select Code to Download


  1. or download this
    my $ctl_path = '/home/user/.myapp/ssh_ctl_path';
    unlink $ctl_path; # just in case it has been left behind in a previous
    + run of the script.
    ...
    $ssh->die_on_error;
    system('sudo', 'rsync','-e',"ssh -S $ctl_path",'--blocking-io','-q','-
    +-','host:/remote/directory','/local/directory')
        and die "rsync command failed: $?";
    
  2. or download this
    rsync -e ssh -S /home/user/.myapp/ssh_ctl_path --blocking-io -q -- hos
    +t:/remote/directory /local/directory