Koozali.org: home of the SME Server

cron is sending 800 emails !

Thierry Bucco

cron is sending 800 emails !
« 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

judy

Re: cron is sending 800 emails !
« Reply #1 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

Thierry Bucco

Re: cron is sending 800 emails !
« Reply #2 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

ReiserFS/ext3

Re: cron is sending 800 emails !
« Reply #3 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