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?
Best Answer
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.