HostOnNet Blog

Disable email from cronjob

Looking for Linux Server Admin or WordPress Expert? We can help.

To disable email from cronjob, add

 >/dev/null 2>&1 

to end of the script. This will redirect all messages to /dev/null.

Posted in Linux

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.