
xenovass
Novice
May 11, 2010, 3:52 AM
Views: 4794
|
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)
|