Author Login
Post Reply
Kaushal Shriyan wrote:
> Hi I have the following entry in the crontab
>
> MAILTO=systems@(protected)
> 0 18 * * * /home/kaushal/rsync_mysql.sh
>
> I want my subject line to be "hostxx:yyDB refresh daily"
>
> is there a way to do it
>
> Thanks and Regards
>
> Kaushal
>
The easiest way is to write a wrapper script; I have a few of them that
do something like:
(
echo "From: songbird.jungle <root@(protected)>"
echo "To: Michael Edenfield <kutulu@(protected)>"
echo "Subject: Portage Update Report"
echo ""
# do stuff here.
) | sendmail kutulu@(protected)
--
gentoo-user@(protected)