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
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.
>
>
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
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