change cron notifications email

change cron notifications email

Posted by: pedrotuga
Posted on: 2007-05-26 05:17:00

I want to have all cron notifications in a different email.
Where can i set the address of the new email?

Re: change cron notifications email

Posted by: sdayman
Posted on: 2007-05-26 06:39:00

I hope you mean all cronjobs will go to the same mail address that's not your usual one. Just add a line to the top of your crontab file:
MAILTO=mycronic@example.com

http://wiki.dreamhost.com/Crontab#Handy_Crontab_Header

-Scott

Re: change cron notifications email

Posted by: pedrotuga
Posted on: 2007-05-26 10:15:00

will they still be sent to my admin email?

Re: change cron notifications email

Posted by: sdayman
Posted on: 2007-05-26 12:13:00

I don't think so. Without that mailto line, it goes to your default mail address. Adding the mailto line overrides the default.

-Scott

Re: change cron notifications email

Posted by: pedrotuga
Posted on: 2007-05-27 04:02:00

That good. That's what i want to do. Keep my cron notifications in a special mailbox.
Thank you.

Tags: new emailcronnotifications