Linux
Disabling e-mail notifications from cron jobs
Discover how to stop cron job email notifications by redirecting output to /dev/null.
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 e-mail notifications, append > /dev/null 2>&1 to the command in the cron job. This redirects all output from the cron job to the /dev/null device. For example, the following cron job does not send e-mail notifications:
To resume receiving e-mail notifications from cron jobs, simply remove > /dev/null 2>&1 from the command.
Was this page helpful?
.jpg?fit=max&auto=format&n=E2LlsT5gBITvo732&q=85&s=ec11e1673894bdf46663a5d73602eb87)
