How to disable the email notification by crond?

crond sends email notifications automatically. However, these emails are not needed. How to disabled it?

If your command does not anything printed to STDOUT or STDERR, there is not emails send. You can redirect 2 and 1 to /dev/null at the end of your command.

You can also set the MAILTO variable to empty by add this line to your crontab -e:


Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *