Hi Brevsville! On Tue, 16 May 2000, Brevsville Administrator wrote:
Hi
I have a crontab entry that backs up all my customised configuration, but how to make crontab send me an email with the output of the scripts crontab runs? I guess I have to pipe it in some way but I'm not sure how.
Thanx for any help.
At the bottom of your crontab use MAILTO={login name of person to get mail} However if you crontab is populated with stuff that you don't want mail for then there are various ways to stop email from coming from them. One is add after the commands '> /dev/null 2>/dev/null' or so a more complicated setup use: MAILTO="" 1 1 * * * echo "Cron entry 1" MAILTO=sean 2 2 * * * echo "Cron entry 2" MAILTO="" 3 3 * * * echo "Cron entry 3" Hope you get the jist. Sean -- Linux User: #124682 ICQ: 679813 My Current Uptime is 0d, 13h and 55m on Linux 2.2.15 ...The attention span of a computer is only as long as its power cord. <HR> <UL> <LI>application/pgp-signature attachment: stored </UL> -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/