Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Thierry Bucco on May 17, 2002, 02:56:18 PM

Title: cron is sending 800 emails !
Post by: Thierry Bucco on May 17, 2002, 02:56:18 PM
Hi,

I have installed asdl (speedtouch modem) on my sme server easily using http://membres.lycos.fr/bazimon//speedtouch.html (big thanks to him) all woks fine.

But yesterday during the night the connection was impossible.

I have an auto re-connection script  launched by cron every 5 minutes.

Today all is OK but cron is sending me (admin) about 800 mails.

How can I prevent this ?

Thanks a lot

Thierry from France
Title: Re: cron is sending 800 emails !
Post by: judy on May 19, 2002, 04:41:22 PM
Hi Thierry,

what is the content of the mails? its not difficult to help you
with such a problem but plz post the content!

regards
judy
Title: Re: cron is sending 800 emails !
Post by: Thierry Bucco on May 19, 2002, 10:03:46 PM
The content is [ OK ].

And the subject is : Cron /usr/local/bin/reco-pppoa &

Thanks for your help.

Thierry
Title: Re: cron is sending 800 emails !
Post by: ReiserFS/ext3 on May 22, 2002, 01:21:40 AM
hi,

sorry for the long waiting, mutch work...

>And the subject is : Cron /usr/local/bin/reco-pppoa &

go to /etc/crontab
and comment out or delete the following line

MAILTO=root

all cron is doing is send to root. another way is to send crons output to the nirvana:
>/dev/null 2>&1 &
in your case:
/usr/local/bin/reco-pppoa >/dev/null 2>&1 &

regards
judy