| Linux Apache (10) Network (11) shell (12) |
How to disable notification emails of cron jobs
Question: I have a couple of jobs scheduled using cron. Some run every hour and I am tired of seeing the same notification emails every hour. How can I disable that?Answer: Indeed by default cron jobs sends a email to the user account executing the cronjob. If you don't like that simply redirect your job's stdout and stderr to nullYou can do that by appending the following to your command: >/dev/null 2>&1
Comments:
|