how to disable email from cron jobs

From WebHostingNeeds.com
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.