Archive for July, 2013

Disable mail from cron job

Tuesday, 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:

MAILTO=

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

Posted in Uncategorized | No Comments »