Re: rsync perl script

2008-03-21 Thread J. Peng
On Sat, Mar 22, 2008 at 12:28 AM, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: > > my @info = rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ ; It should be: my @info = `rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/`; -- Jeff (Joy) Peng Tencent QQMail Dept. -- To unsubscribe, e-ma

Re: rsync perl script

2008-03-21 Thread Kaushal Shriyan
On Fri, Mar 21, 2008 at 2:36 PM, J. Peng <[EMAIL PROTECTED]> wrote: > when running rsync with -v argument and when it get failed on > executing, it will report the errors by itself. > you could say my @info = `rsync -av ` in your perl scripts and > check the executed results in the @info. > >

Re: rsync perl script

2008-03-21 Thread J. Peng
when running rsync with -v argument and when it get failed on executing, it will report the errors by itself. you could say my @info = `rsync -av ` in your perl scripts and check the executed results in the @info. On Fri, Mar 21, 2008 at 3:07 PM, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: > Hi

rsync perl script

2008-03-21 Thread Kaushal Shriyan
Hi [EMAIL PROTECTED] 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ If i put this two lines in crontab it will run correctly,My requirement was to create a perl script, this perl script should indicate success or failures and the reason for failure Any ideas Thanks and Regards