Disable mail from cron job

July 30th, 2013

Most of the scripts I write include an email that includes status and timing of each command. When these are run via cron, I get a second email from the cronjob. In order to stop this just add this to the top of the cronjob file:


This will stop cron from sending out email and allows for turning back on when you need to debug.

Posted in Uncategorized | No Comments »


Leave a Reply

 Comment Form