Gentoo Archives: gentoo-user

From: Dirk Heinrichs <dirk.heinrichs@××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] crontab entry
Date: Mon, 24 Mar 2008 09:14:44
Message-Id: 200803241014.36432.dirk.heinrichs@online.de
In Reply to: [gentoo-user] crontab entry by Kaushal Shriyan
1 Am Montag, 24. März 2008 schrieb Kaushal Shriyan:
2
3 > MAILTO=systems@×××××××.com
4 > 0 18 * * * /home/kaushal/rsync_mysql.sh
5 >
6 > I want my subject line to be "hostxx:yyDB refresh daily"
7 >
8 > is there a way to do it
9
10 Don't rely on cron to send the mail, use mailx inside your script instead.
11 That means, inside the script, capture all output in a temp. file, then use
12
13 cat /tmp/file|mailx -s "my subject" systems@×××××××.com
14
15 HTH...
16
17 Dirk

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] crontab entry Kaushal Shriyan <kaushalshriyan@×××××.com>