This article demonstrates how to stop receiving e-mail notifications from cron jobs.

By default, when a cron job is run, cron sends e-mail notifications to the user account. To disable email notifications, put >/dev/null 2>&1 to the cron job command. This redirects all cron job output to the /dev/null device. The following cron job, for example, does not send e-mail notifications:

15 * * * Sun     ${HOME}/bigtask.sh > /dev/null 2>&1

To resume receiving e-mail notifications from cron jobs, simply remove >/dev/null 2>&1 from the command.

Was this answer helpful? 0 Users Found This Useful (0 Votes) linux, cronjobs