On Wed, Mar 28, 2007 at 08:41:34AM -0500, 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`.
| 
| After the system tab is reloaded, cron fails to run any commands
| listed there: no CMD messages are logged (or seen in the debugging
| output) and the file is never touched.
| 
| I've tried to get this to work on a semi-recent -current/i386 as
| well as the latest snapshot (also i386) with no luck. I browsed the
| code, but didn't see any obvious problems.

Reread crontab(5), the /etc/crontab has a slightly different format
(to specify username).

Cheers,

Paul 'WEiRD' de Weerd

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 

Reply via email to