1 |
On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield <kutulu@××××××.org> wrote: |
2 |
|
3 |
> Kaushal Shriyan wrote: |
4 |
> > Hi I have the following entry in the crontab |
5 |
> > |
6 |
> > MAILTO=systems@×××××××.com |
7 |
> > 0 18 * * * /home/kaushal/rsync_mysql.sh |
8 |
> > |
9 |
> > I want my subject line to be "hostxx:yyDB refresh daily" |
10 |
> > |
11 |
> > is there a way to do it |
12 |
> > |
13 |
> > Thanks and Regards |
14 |
> > |
15 |
> > Kaushal |
16 |
> > |
17 |
> |
18 |
> The easiest way is to write a wrapper script; I have a few of them that |
19 |
> do something like: |
20 |
> |
21 |
> |
22 |
> ( |
23 |
> echo "From: songbird.jungle <root@××××××××.jungle>" |
24 |
> echo "To: Michael Edenfield <kutulu@××××××.org>" |
25 |
> echo "Subject: Portage Update Report" |
26 |
> echo "" |
27 |
> |
28 |
> # do stuff here. |
29 |
> |
30 |
> ) | sendmail kutulu@××××××.org |
31 |
> |
32 |
> -- |
33 |
> gentoo-user@l.g.o mailing list |
34 |
> |
35 |
> |
36 |
|
37 |
Hi, |
38 |
|
39 |
I have two scripts file one is http://pastebin.com/m263e6f3c and |
40 |
http://pastebin.com/m175098db. |
41 |
|
42 |
The requirement is run http://pastebin.com/m175098db script once the below |
43 |
line succeeds in the http://pastebin.com/m263e6f3c |
44 |
|
45 |
if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ > |
46 |
/tmp/rsync-${TIMESTAMP}.log 2>&1 |
47 |
then |
48 |
/usr/bin/mailx -s "Success: host77 DB refresh daily" kaushal@×××××××.com < |
49 |
/tmp/rsync-${TIMESTAMP}.log |
50 |
|
51 |
I am not able to proceed |
52 |
|
53 |
Thanks and Regards |
54 |
|
55 |
Kaushal |