Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a job that is run by anacron. In the syslog I see messages like:

Apr  6 06:11:09 host anacron[1031]: Job `myJob' terminated (mailing output)

but I never see that mail. If I run that same job through cron the output is mailed to /var/mail/username. Where is anacron mailing the output?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Most likely anacron is executing the jobs as root, so the mail isn't being sent to your user. You might what to use /etc/aliases to get the mail at your normal address. Like so:

root: your@email.com

Or to use a file:

root: /file/name

See man 5 aliases for more information.

share|improve this answer
    
nice tip on using aliases and also on directing to a file –  Joshua Kersey Dec 26 '12 at 18:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.