Koozali.org: home of the SME Server

new crontab entries not working

Kees Vonk

new crontab entries not working
« on: June 12, 2002, 10:55:48 AM »
I have created a new entry for the crontab file, templated it and expanded the template, but it doesn't seem to work. Here is an example of a test entry:

------- /etc/e-smith/templates-custom/etc/crontab/test -------
40 6 * * * echo test > /tmp/kees.tst
--------------------------------------------------------------

> /sbin/e-smith/expand-template /etc/crontab

A quick look at /etc/crontab shows that the test entry is now there, however at 6:40 nothing happens, I do not get a /tmp/kees.tst file. What am I doing wrong?


Kees

PS. I noticed that 'crontab -l' says 'no crontab for root'

Geoff Bennion

Re: new crontab entries not working
« Reply #1 on: June 12, 2002, 07:58:43 PM »
service crond restart

Kees Vonk

Re: new crontab entries not working
« Reply #2 on: June 12, 2002, 08:52:34 PM »
No, that didn't work, I even tried restarting the server, but to no effect. Is it correct that 'crontab -l' says: 'no crontab for root'?

If I edit the crontab file using 'crontab -e' it works, but then it is not templated. What am I doing wrong?

Kees

Kees Vonk

Re: new crontab entries not working
« Reply #3 on: June 13, 2002, 03:59:02 PM »
Just for the record, I solved it (with some help). I had forgotten to put the executing account in the lines in crontab. When I added that everything started working straight away.

Kees