On Wed, 28 Mar 2007, Will Maier wrote:

> According to cron(8), cron should be able to read commands from a
> properly formatted and chmoded /etc/crontab file. I've created such
> a file, but I can't seem to get cron to run the test command in it.
> 
>     # cat <<EOF > /etc/crontab
>     */1      *       *       *       *       /usr/bin/touch /tmp/crontest
>     EOF
>     # chmod 0600 /etc/crontab
> 
> cron then successfully loads the changes made to that file:
> 
>     Mar 28 07:23:01 lass cron[11652]: (*system*) RELOAD (/etc/crontab)
> 
> I can also verify that the system file is loaded by watching the
> output of `cron -x load`. The command is valid per crontab(5) and
> works when inserted in root's tab using `crontab -e`.

No, the system crontab (/etc/crontab) file needs an extra field, as
described in the manual. 

        -Otto

Reply via email to