how to disable email from cron jobs

From WebHostingNeeds.com
Revision as of 16:35, 5 February 2008 by Admin (talk | contribs) (New page: When you run cron jobs on linux/freebsd, you will get email with result on every time cronjob runs. You can disable this by adding following to end of the script. <pre> >/dev/null 2>&1 ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

When you run cron jobs on linux/freebsd, you will get email with result on every time cronjob runs.

You can disable this by adding following to end of the script.

 >/dev/null 2>&1

This will redirect the out put from the script to null device /dev/null

Since cron have no output, no mail send to user.