crontab email

Svein Halvor Halvorsen svein-freebsd-questions at theloosingend.net
Thu Mar 4 09:25:20 PST 2004


[Brian Henning, 2004-03-04]
>  Everytime something runs from the the crontab for a given user such as root, I
>  get an email with the results of the execution. I am running a few crontabs that
>  run every 2 minutes and this gets to be a lot of excess email. How can I turn
>  off this feature.

You only get mail if the script produces any output. Put a >/dev/null at
the end of the commandline, and you will only get mail when something is
written to stderr, not stdout.


Svein Halvor


More information about the freebsd-questions mailing list