Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Kees Vonk 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'
-
service crond restart
-
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
-
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