Hi
I am running a RedHat system with Cpanel. On that machine I have a cron job that runs every hour and every time it runs I get a email about it.
How do I turn the email notification off?
does the cronjob return some output?
if so, try sending it to /dev/null
e.g.
0 * * * * * /my/script &> /dev/null
it should stop the emails
John[H4Y]
03-09-2004, 12:30 AM
In WHM, you may want to stop WHM from forwarding you root's mail.
MAILTO=""
Add this to your cron file and you'll get no exit reports by default.
Brightadmin
03-10-2004, 02:27 AM
Hi msh,
You can disable email notification by cron job by appending ">/dev/null 2>&1" (without quotes) at the end of cron entry.
If you want to redirect the output of the cron to a log file.
You can do it by replacing the above entry with "> {logfile path and name}" (without quotes).
Regards,
:)