Maximux
09-09-2002, 07:43 PM
This should be very simple. I ask that someone help me to clear my confusion.
What I want to do;
# Run program_name once a minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name every five minutes
5,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name each minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
I have added these entries into /var/spool/cron/root (emacs) as they appear above with the exception that I have changed the program_name.
I run
root# crontab -l
and I get ;
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.2302 installed on Mon Sep 9 15:28:43 2002)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
35 07,10,13,16,19,22,01 * * * /usr/local/program_name/program_name >/dev/null 2>&1
# Run program_name once a minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name every five minutes
5,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name each minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
Now, from my understanding there is no need to have a cron.update file in /var/spool/cron/ because according to man crontab that is no longer necessary.
My programs never run!
Should I edit /etc/crontab instead? I'm more confused now than anything. This just does not seem that it should be this difficult - it is cron.
notice that these cronjobs are in minutes...not
cron.daily
cron.half-hourly
cron.hourly
cron.monthly
cron.quarter-daily
cron.quarter-hourly
cron.weekly
What am I missing? Anyone, please, I am pulling my hair out.
Thank you,
Maximux
What I want to do;
# Run program_name once a minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name every five minutes
5,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name each minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
I have added these entries into /var/spool/cron/root (emacs) as they appear above with the exception that I have changed the program_name.
I run
root# crontab -l
and I get ;
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.2302 installed on Mon Sep 9 15:28:43 2002)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
35 07,10,13,16,19,22,01 * * * /usr/local/program_name/program_name >/dev/null 2>&1
# Run program_name once a minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name every five minutes
5,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/sbin/cobalt/program_name 2>&1
# Run program_name each minute
* * * * * root /usr/sbin/cobalt/program_name 2>&1
Now, from my understanding there is no need to have a cron.update file in /var/spool/cron/ because according to man crontab that is no longer necessary.
My programs never run!
Should I edit /etc/crontab instead? I'm more confused now than anything. This just does not seem that it should be this difficult - it is cron.
notice that these cronjobs are in minutes...not
cron.daily
cron.half-hourly
cron.hourly
cron.monthly
cron.quarter-daily
cron.quarter-hourly
cron.weekly
What am I missing? Anyone, please, I am pulling my hair out.
Thank you,
Maximux
