Re: Cron 101: Cron message "/bin/sh: root: command not found"
Am Sonntag, 11. Mai 2014, 11:53:30 schrieb Ron Leach:
> On 11/05/2014 10:48, Martin Steigerwald wrote:
> > Look into
> >
> > - /etc/cron.d
> > - crontab -l
> >
> > It would not make much sense, but maybe someone added a call to
> > /etc/cron.hourly there.
>
> server4:/# crontab -l
> # /etc/crontab: system-wide crontab
> # Unlike any other crontab you don't have to run the `crontab'
> # command to install the new version when you edit this file
> # and files in /etc/cron.d. These files also have username fields,
> # that none of the other crontabs do.
>
> SHELL=/bin/sh
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>
> # m h dom mon dow user command
> 17 * * * * root cd / && run-parts --report /etc/cron.hourly
Gotcha.
> How very odd.
> That isn't the content of /etc/crontab .
No, but of
> EDIT: I see from Andrei's and Filip's replies that this report may be
> picking up root's crontab from /var/spool/cron/crontabs .
as crontab -l displays :)
crontab is for editing, listing, removing user crontabs, including the user
crontab of the root user.
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Reply to: