On 9/14/06, David Grant <[EMAIL PROTECTED]> wrote:


On 9/14/06, Neil Bothwick < [EMAIL PROTECTED]> wrote:
On Thu, 14 Sep 2006 14:43:30 -0700, David Grant wrote:

> Cron is sending out an email for jobs run as user root, but not for cron
> jobs run as my normal user? Yet the funny thing is, when cron runs jobs
> as normal user, it still actually sends the mail to root
> (see /etc/crontab).

You seem to be contradicting yourself here; first you say user cron jobs
don't send mail, then you say they send mail to root. Which is it?

Well I'm not contradicting myself intentionally... I should have been more clear. I'll do a better job this time:

Cron is trying to send out an email for jobs run as user root to and succeeding. Cron is also trying to send out an email for jobs run as a normal user but it seems to fail at this. Both cron jobs (whether run as user root or normal user) are both trying to send the email to the root user.

Either way, the solution may be to set MAILTO in your user's crontab.

I could try this, although I as I said it seems like both jobs run as root and normal user are both being sent to user root (according to the MAILTO)


Hmm, it turns out that setting MAILTO=root in my own user's crontab makes it send mail. MAILTO=root is already in /etc/cron/crontab by the way so this is all very strange.


--
David Grant
http://www.davidgrant.ca

Reply via email to