Click to See Complete Forum and Search --> : crontab howto.......
jaque
03-27-2001, 06:04 PM
I know that this sounds kinda stupid, but I am trying to use crontab and it doesn't want to work for me. I am trying to run a program once at noon and again at midnight. I used the following line in my /etc/crontab file.
0 0,12 * * * root /(then the program path here)
Is this the right format?
Any help would be great! :confused:
Tyr-7BE
03-27-2001, 06:48 PM
Not sure about the 0,12...dunno what the syntax should be. If it won't work you might wanna put in two cronjobs, one for 0 and one for 12. Otherwise it looks good. You could check http://www.linuxdoc.org/
[ 27 March 2001: Message edited by: Tyr-7BE ]
bdg1983
03-27-2001, 06:55 PM
Use the manual pages. After all, that's what they are there for.
man cron
man crontab
One of them should give you the correct syntax.
Then there's the NHF here (http://www.linuxnewbie.org/nhf/intel/misc/scheduling.html) on scheduling and cron. Read the NHF.
Infested Flar
03-27-2001, 10:14 PM
there is NHF on that. just search for "scheduling in linux"
-flar-