Cron is sending lots and lots of emails (100+ a day it seems) to the root acount. I can't seem to figure out how to get it to stop! Sends the PHP warnings, and errors, ect. 

Replies (5)

Probably a number of ways...

Reply 1

You could adjust the level of PHP reporting (so it only emails re errors - which you probably want to fix). Or you could adjust the cron job itself. Google gave a link that's probably relevant (TKL is now based on Debian but Ubuntu should be close enough for the purposes of your question).

Let us know how you go and if/how you adjusted it...

The MAILTO="" did not work

Reply 2

The MAILTO="" did not work :( 

What app are you using?

Reply 3

I suspect that there may be a setting somewhere in your app that adjusts the cron script (although i'm only guessing...)

Hmmm..

Reply 4

When you say that you have suppressed their output, I assume you mean you have suppressed the level of reporting of your PHP app? By my understanding that should do it, but obviously not...

Maybe there is a setting in the php.ini that can further suppress them? TBH I imagine that the config is fairly stock standard Debian (v13.x = Wheezy; v12.x = Squeeze) PHP/Apache/Cron config (I just had a quick look at the LAMP appliance source and couldn't see any tweaks that might create this behaviour).

I suggest that you have a google, although TBH I just did and didn't find anything that really jumped out at me as being a solution to your issue. Sorry not much help really...

Nice workaround!

Reply 5

That'll do it... Still I'm not sure why it is doing that in the first place, not ideal behaviour IMO...