CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: rsync perl : Edit Log



xenovass
Novice

May 11, 2010, 3:52 AM


Views: 2961
rsync perl

hi ! i have a problem with my script . im trying to rsync the directory backup_dbase and also its contents through my Perl script. But , when i schedule it to run every minute with cron it returns error code 65280 and also the '$!' says bad file Descriptor. When i run rsync through command line everything is fine ,it works! what is going wrong with this ? Also sometimes returns the code 3072 .

#!/usr/bin/perl

$sys=system ("/usr/bin/rsync -avz --rsh=/usr/bin/ssh -i /root/.ssh/mirror_id_rsa /root/backup_dbase root\@cronus.ds.unipi.gr:/root/" ) ;
if($sys != 0)
{print MYFILE "rsync error $sys : $! \n";
print MYFILE "----------------------------------------------------------------------------------\n";}


(This post was edited by xenovass on May 11, 2010, 3:53 AM)


Edit Log:
Post edited by xenovass (Novice) on May 11, 2010, 3:53 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives