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:

MAILTO=""

Similar Posts

Leave a Reply

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