How to disable the email notification by crond?
Posted on In QAcrond 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=""