Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

Re: [gentoo-user] crontab entry

Mike Edenfield

2008-03-24

Replies: Find Java Web Hosting

Author LoginPost 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)

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