stop crontab mail notifications

Well, today is friday and we have sweetest 31° C at office could be a litle bit less but outside is a real hell, anyway, yesterday I thought in how can I stop thousand and thousand of crontab mail notifications, for improving mail server health and performance, so few minutes in Google and found a magic solution for this enigm. The only thing that you need is add a clasic output like “/bin/your_shell_command > /dev/null 2 >&1“, trick are in bold! . Maybe if you have a lot of tasks in your crontab file, you should declare MAILTO=”" and you will never receive any notification from crontab daemon in you mailbox.

Be Sociable, Share!

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>