Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

Re: [gentoo-user] rsync script

Alan McKinnon

2008-03-21

Replies: Find Java Web Hosting

Author LoginPost Reply
On Friday 21 March 2008, Kaushal Shriyan wrote:
> Hi
>
> MAILTO=kaushal@(protected)
> 0 18 * * * rsync -av /var/lib/mysql kaushal@(protected)/
>
> If i put this two lines in crontab it will run correctly,My
> requirement was to create a script, this script should indicate
> success or failures and the reason for failure

crontab will only send a mail is there is anyput to stdout. What output
do you get if you run the rsync manually?

Do you have any packages installed that can actually send the mail?



--
Alan McKinnon
alan dot mckinnon at gmail dot com

--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.