Help for this page

Select Code to Download


  1. or download this
    open ( CRON, "ssh host crontab -l" ) || die $!;
    while ( <CRON> ) {
         print $_;
    }
    
  2. or download this
    open ( RSYNC, "rsync -az -e \"ssh -o BatchMode=yes\" --delete-after ho
    +st:/path/to/dir /path/to/backup |" );
    
    while ( <RSYNC> ) {
         print "output: $_";
    }