Re: [Tutor] rsync python script

2008-03-21 Thread Kaushal Shriyan
On Fri, Mar 21, 2008 at 9:40 PM, Eric Walstad <[EMAIL PROTECTED]> wrote: > Kaushal Shriyan wrote: > > 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 requ

Re: [Tutor] rsync python script

2008-03-21 Thread Eric Walstad
Kaushal Shriyan wrote: > 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 python script, this python script should indicate > succes

Re: [Tutor] rsync python script

2008-03-21 Thread Tom Tucker
The success or failure could be confirmed by checking the exit status and/or confirming host77 has the same /var/lib file structure as the source host. The later is the most accurate, however a bit more complicated to confirm. As for determining the reason for failure, possible causes off the top o

[Tutor] rsync python 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 python script, this python script should indicate success or failures and the reason for failure Any ideas Thanks and Rega