1 |
Kaushal Shriyan wrote: |
2 |
> Hi I have the following entry in the crontab |
3 |
> |
4 |
> MAILTO=systems@×××××××.com |
5 |
> 0 18 * * * /home/kaushal/rsync_mysql.sh |
6 |
> |
7 |
> I want my subject line to be "hostxx:yyDB refresh daily" |
8 |
> |
9 |
> is there a way to do it |
10 |
> |
11 |
> Thanks and Regards |
12 |
> |
13 |
> Kaushal |
14 |
> |
15 |
|
16 |
The easiest way is to write a wrapper script; I have a few of them that |
17 |
do something like: |
18 |
|
19 |
|
20 |
( |
21 |
echo "From: songbird.jungle <root@××××××××.jungle>" |
22 |
echo "To: Michael Edenfield <kutulu@××××××.org>" |
23 |
echo "Subject: Portage Update Report" |
24 |
echo "" |
25 |
|
26 |
# do stuff here. |
27 |
|
28 |
) | sendmail kutulu@××××××.org |
29 |
|
30 |
-- |
31 |
gentoo-user@l.g.o mailing list |