[Tutor] rsync python script

Kaushal Shriyan kaushalshriyan at gmail.com
Fri Mar 21 17:22:04 CET 2008

On Fri, Mar 21, 2008 at 9:40 PM, Eric Walstad <eric at ericwalstad.com> wrote:

> Kaushal Shriyan wrote:
> > Hi
> >
> > MAILTO=kaushal at example.com <mailto:kaushal at example.com>
> > 0 18 * * * rsync -av /var/lib/mysql kaushal at host77:/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
> It looks like rsync can output to a text file.  Python makes text
> parsing a breeze.  Have you defined 'indicate', 'success' and 'failure'
> yet?  When will your python script run?  Who/What will run it?

Hi Eric

Can i have a sample python script which can take care of this rsync
application and at the same time indicating success and failure and the
reason for failure

Thanks and Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080321/fcb28ca4/attachment.htm 

More information about the Tutor mailing list