Logo
login: password:
register | forgot?

Knowledgebase

How do I stop getting a copy of all /cron output to my e-mail address?


The smart thing to do in this situation is to redirect any cron output to /dev/null.

You do that like this:
*/1 * * * * command >/dev/null 2>&1
Those new bold parts mean:
  • >/dev/null (redirect any screen output to null -- silently ignore/destroy it)
  • 2>&1 (combine STDERR and STDOUT for the redirect so you get no screen output from either pipe. In some situations you'd want to only suppress output and still be emailed explicit errors from a shell script, so you'd leave this part off).


Powered by Cerberus Helpdesk 4.0