Disable Crontab Mail Report

Crontab generated mail report can be such pain 😦
It will be generated on each scheduled cron time. Server filesystem performance will suffer from it.
This is how to disable crontab mail report :

  1. Add “>/dev/null 2>&1” or “&> /dev/null” at the end of cron line
  2. Nulling MAILTO variable. Run crontab -e and add ‘MAILTO=""' at the top of the file

Those steps above will save you a lot of time deleting huge number of mail files generated by cron report.



About piyecarane

Bla bla bla about me
This entry was posted in Linux and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s