[SunHELP] Suppressing cron output.

gonufer sunhelp at sunhelp.org
Tue Aug 21 13:24:28 CDT 2001


Matthew Schumacher wrote:

> Why do I keep getting cron email even after I directed output to
> /dev/null?



You directed stdout to /dev/null but did not redirect stderr, where
error messages are output, to /dev/null.


> /usr/local/bin/updatedb > /dev/null


That should be:

	/usr/local/bin/updatedb >/dev/null 2>/dev/null

	(send stdout to /dev/null, send stderr to /dev/null)

-or-
	/usr/local/bin/updatedb 2>&1 >/dev/null

	(combine stderr with stdout, send stdout to /dev/null; same
	effect)

-greg






_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the SunHELP mailing list