PDA

View Full Version : Cron



rrijkse
07-22-2004, 09:47 PM
I have been trying for days to get one script to run under cron every hour.
If I add it into the system cron file, the root users's cronfile, the knoppix user cronfile, or add a script to the cron.hourly folder, they don't run. I started the cron deamon, but still no luck.
I am sure that the syntax I used for the cronfile is correct because this works on my hd installation.
I have run out of possiblilities, any suggestions are welcome

- Robbert

Ambrose
07-28-2004, 01:35 AM
Is your call in /etc/crontab ?

You'll also be able to test this on your remaster before you compress. Just mount proc and start up cron, and it should work.

I suggest putting an '"echo `date`" >> /tmp/crontest' to test. Set that to run every minute

* * * * * root '"echo `date`" >> /tmp/crontest'

I believe.

Good luck,

-a

user unknown
07-28-2004, 05:43 AM
I'm not sure to which version it belongs, but sometimes you're told to edit the crontab with


crontab -e

(-e like edit).

Perhaps you have to set your prefered editor first.
For commandline:


export EDITOR=mcedit
export VISUAL=mcedit

don't know which is used.