Feed on
Posts
Comments

append “> /dev/null 2>&1″ to your crontab, i.e.:

* * * * * my job > /dev/null 2>&1


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

2 Responses to “have cron stop e-mailing you”

  1. on 02 May 2007 at 12:55 pm Andrew Louie

    Alternatively, fire up old crontab -e, and insert a line containing

    MAILTO=”

    to not specify a mailer. instead errors goto syslog or whatever you have set up for logging.

  2. on 16 Jun 2009 at 1:54 pm Albert Wang

    e.g.! not i.e.!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS