[SunHELP] Suppressing cron output.

Bob C. Ruddy sunhelp at sunhelp.org
Tue Aug 21 10:45:11 CDT 2001


try this

0 4 * * * your_command_here > /dev/null 2>&1

descripter 1 is STDOUT descripter 2 is STDERR. So you are redirecting
STDOUT to /dev/null but unless you add 2>&1 you'll still get emailed. The
2>&1 redirects STDERR to STDOUT which then sends STDERR to /dev/null as
well.

Bob

On Tue, 21 Aug 2001, Matthew Schumacher wrote:

->Hello all,
->
->Why do I keep getting cron email even after I directed output to
->/dev/null?
->
->schu
->
->--------------------------------------------------------
->Your "cron" job on machinename
->/usr/local/bin/updatedb > /dev/null
->
->produced the following output:
->
->find: /proc/4978/fd/4: No such file or directory
->find: /proc/4978/fd/4: No such file or directory
->_______________________________________________
->SunHELP maillist  -  SunHELP at sunhelp.org
->http://www.sunhelp.org/mailman/listinfo/sunhelp
->





More information about the SunHELP mailing list