Cronjob email notification

Cronjob email notification

Posted by: Vric
Posted on: 2005-03-29 07:53:00

Hi

I have few cronjob (crontab) that execute everyday (mainly for stats system) and every day, I receive an email for each job.

I was wondering if it's possible to stop this notification ? It's fun at first to see everything work fine, but getting 10 emails of this by day, it's a bit pain (mainly for customer that use the main email and receive this message for nothing)

Is it possible to make it silent ? (and don't have any email, except for errors)

Thanks

Re: Cronjob email notification

Posted by: user919
Posted on: 2005-03-29 08:42:00

at the top of your crontab put:

MAILTO=""

jason

Re: Cronjob email notification

Posted by: ardco
Posted on: 2005-03-29 13:01:00

>> Is it possible to make it silent ? (and don't have any email, except for errors)
> MAILTO=""

But then you won't receive errors either, will you?

How about modifying your scripts so standard out goes somewhere else (like a file or /dev/null) and then the only output to be emailed is errors?

Good luck,

BobS

Re: Cronjob email notification

Posted by: Vric
Posted on: 2005-03-31 16:21:00

it worked thanks

I won't have error, but it's not very important.

Tags: email notificationcrontabemailsfunjob