Click to See Complete Forum and Search --> : Stop Cron messages


lth2h
01-12-2001, 06:48 PM
Is there a way to stop Cron messages being sent to my mailbox unless there is an error. All of my scripts produce no output unless there is an error. Yet cron sends me a bunch of empty messages.

Any help is greatly appreciated.

Thanks.

iDxMan
01-13-2001, 12:51 AM
0 * * * * /path/to/script >/dev/null 2>&1

You should ensure your script emails on error.. I believe this will trap all output.

??

-r