What's wrong with cron? [SOLVED]
Lorenzo Luengo
lluengo at dgeo.udec.cl
Wed Mar 4 18:18:45 UTC 2009
Lorenzo Luengo escribió:
> Derek Broughton escribió:
>
>> Lorenzo Luengo wrote:
>>
>>
>>
>>> Hi List,
>>>
>>> I recently configured the root alias to forward email to me, and i found
>>> that cron is throwing errors to my mailbox.
>>>
>>> The subject is
>>> Cron <root at host> root cd / && run-parts --report /etc/cron.hourly
>>>
>>> And the body is
>>>
>>> /bin/sh: root: not found
>>>
>>>
>>> It's the default system crontab, but it looks like it's skipping the
>>> username field and interpreting it as a command.
>>>
>>> Thanks for any help you could provide me.
>>>
>>>
>> It would probably have helped if you'd pasted at least that line from the
>> crontab. (I trust you do mean /etc/crontab, not _root's_ crontab - which
>> wouldn't have a username field).
>>
>>
> You're right... but let me ask a question...
>
> Is there a difference between system crontab and root user crontab?? How
> can you make a difference between both?? (I mean how do you edit them)
>
> I'm doing "crontab -e" under a "sudo -i" shell.
>
>
Hmmm I just realized. root crontab is no /etc/crontab, and in my system,
root's crontab was a copy-paste of system crontab, and that was
generating the problems.
Thanks every one for the light shed on this problem!
--
Lorenzo Luengo Contreras
Administrador de Sistemas DGEO
Universidad de Concepción
Concepción - Chile
+56-41-2207277
More information about the ubuntu-users
mailing list