Cron job without emailing errors to root?

Quintin Riis webmaster at countrypure.net
Wed Mar 10 02:14:06 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

See documentation for crontab.  ``MAILTO=""'' should do what you want,
or send all output from command to /dev/null, i.e. command &> /dev/null

		Quintin

phoetoid at pyrospheric.net wrote:
| 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"
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFATtU/kt6kXuDr+LcRAi80AJwIsnuyb+qjXcyvVBHig1KKtV9SzACgvB8w
etEVNGDLyg2vfNWPhCD7Axw=
=s/nF
-----END PGP SIGNATURE-----




More information about the freebsd-questions mailing list