How to Stop or Suppress Cron Emails from Being Sent

Cron jobs send an email by default whenever they make output or errors. If you do scheduled tasks often, these emails can quickly become useless and fill up your inbox.

If you want to stop cron emails, you can send all output to /dev/null.

How to Stop Cron Job Output

Add the following to the end of the cron command to stop emails from a cron job:

>/dev/null 2>&1

Cron Job Example

0 2 * * * /home/backup.sh >/dev/null 2>&1

What This Does

Because of this, there is no output, and cron won't send any emails.

Important Things to Know

Need Help?

If you don't know how to edit cron jobs or need help setting up scheduled tasks, get in touch with the Cyberin support team.