What's wrong with cron?

Lorenzo Luengo lluengo at dgeo.udec.cl
Wed Mar 4 18:07:03 UTC 2009


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.

-- 
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