1 |
On Friday 21 March 2008, Kaushal Shriyan wrote: |
2 |
> Hi |
3 |
> |
4 |
> MAILTO=kaushal@×××××××.com |
5 |
> 0 18 * * * rsync -av /var/lib/mysql kaushal@host77:/var/lib/ |
6 |
> |
7 |
> If i put this two lines in crontab it will run correctly,My |
8 |
> requirement was to create a script, this script should indicate |
9 |
> success or failures and the reason for failure |
10 |
|
11 |
crontab will only send a mail is there is anyput to stdout. What output |
12 |
do you get if you run the rsync manually? |
13 |
|
14 |
Do you have any packages installed that can actually send the mail? |
15 |
|
16 |
|
17 |
|
18 |
-- |
19 |
Alan McKinnon |
20 |
alan dot mckinnon at gmail dot com |
21 |
|
22 |
-- |
23 |
gentoo-user@l.g.o mailing list |