Cron job without emailing errors to root?

Frank Mueller Franky-Mueller at web.de
Tue Mar 9 21:19:09 PST 2004


See "man 5 crontab":
If MAILTO is defined (and non-empty), mail is sent to the user so named. If MAILTO is defined but
empty (MAILTO=""), no mail will be sent.

So just add the following entry to your /etc/crontab:
MAILTO=""
and cron will send no more eMails.

> A quick question--
> I run MRTG for many boxes on my network at five minute intervals, and I am
> seeing massive amounts of email filling up roots inbox due to boxes that
> are currently offline for the night or something.
>
> What I am wondering is, is if there is a way to still have the entries in
> me /etc/crontab to run MRTG at 5 minute intervals without having any
> output emailed out. can i make it come out to concole instead? anything to
> get it from emailing would be great as I am seeing ~2000 messages a day :/
>
> Many thanks
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>



More information about the freebsd-questions mailing list