Anacron - revisited
Derek Broughton
news at pointerstop.ca
Mon Apr 9 00:49:40 UTC 2007
Chris wrote:
> Brian Fahrlander wrote:
>> Chris wrote:
>>> I'm puzzled folks - when anacron runs it's jobs, are there supposed to
>>> be email reports? Case in point - if I create a script to run in
>>> /etc/cron.daily under say CentOS - There is an email sent to root when
>>> that script is complete (example, if I echo the time of start and
>>> completion).
anacron probably doesn't mail anything. But the individual cron jobs that
it triggers are supposed to mail any output. However, any task without
output produces no mail.
>>> If not - is there something that can be turned on to allow the reports
>>> to be sent to root (or any other login provided the alias files says so)
>>
>>> If it does though - it seems mine is not working. So I could use a bit
>>> of help in where it borked.
>>
>>> Again, and as usual - TIA.
>>
>> As far as I know, this is one of the longest-running standards of
>> Unix and Linux; I don't remember hearing of any choice, or mechanism to
>> mute the cron jobs- it's just too important.
Alas, Ubuntu has decided that we shouldn't actually have a mail transport
agent by default. If you don't install one, how can cron output get sent
anywhere?
>>
>> Probably the question to ask is, where does root's mail go? A lot
>> of times, on a new install it goes to a local folder. Try:
>>
>> echo "My at real.address.com" > $HOME/.forward
>>
>> and then sudo to root and "echo "Test mail" | mail root" to see just
>> where it goes.
"mail" definitely doesn't exist by default.
> Oddly enough - the app "mail" does not seems to exist on my install.
Not so odd...
--
derek
More information about the ubuntu-users
mailing list