Re: Rsync doesnot work

2012-02-14 Thread Punit Jain
? Regards, Punit - Original Message - From: "Jeff Peng" To: beginners@perl.org Sent: Tuesday, February 14, 2012 11:11:18 AM Subject: Re: Rsync doesnot work 于 2012-2-14 13:14, Punit Jain 写道: > This works manually if I run this script however under crontab it doesnot. >

Re: Rsync doesnot work

2012-02-13 Thread Jeff Peng
于 2012-2-14 13:14, Punit Jain 写道: This works manually if I run this script however under crontab it doesnot. Any clue what could be the issue ? How about the environment variables? For example, you maybe have setup the value of RSYNC_PASSWORD in the shell, but the value becomes not effective

Rsync doesnot work

2012-02-13 Thread Punit Jain
Hi , I have a quick question on Rsync. I am doing a rsync to remote server using code below : - use File::Rsync; my $source= "/backup/$TodaysDate"; my $ssh_server = '192.168.0.xxx'; my $destination = '/backup/data/'; my $rsync_obj = File::Rsync->new ( { 'rsync-path'=> $rsync, 'arch