[App_rpt-users] ACID Crontab

Steve Mahler kizzy at lusfiber.net
Mon Apr 4 17:57:16 UTC 2016


I am having some problems with cron entries running when I am not 
expecting them to run.  This is an ACID distribution and the crontab is 
set from the root account (crontab -l | crontab -e | etc.).

My crontab file looks like (with the questionable lines commented out).  
The starting comments were taken from a search for CENTOS  5 crontab man 
page.  Just what am I missing??

#
# Fields - KF5VH
#
# minute - any integer from 0 to 59
# hour - any integer from 0 to 23
# day - any integer from 1 to 31 (must be a valid day if a month is 
specified)
# month - any integer from 1 to 12 (or the short name of the month such 
as jan or feb)
# dayofweek - any integer from 0 to 7, where 0 or 7 represents Sunday 
(or  3 letter name like Mon)
# command - the command to execute
#
*/5 * * * *         /etc/asterisk/scripts/wxzip/Alert0
10,25,40,55 * * * * /etc/asterisk/SANITYBOOT/sanityboot
03 02 * * *         /sbin/ntpdate pool.ntp.org >> 
/etc/asterisk/LOG/ntptimelog
# 07 00 * * 1         /etc/asterisk/scripts/WXA/oobuild 44
# 58 23 * * 1         /etc/asterisk/scripts/WXA/ooclear 50
# 07 00 * * 2         /etc/asterisk/scripts/WXA/oobuild 43
# 58 18 * * 2         /etc/asterisk/scripts/WXA/ooclear 50
# 06 00 1-7 * 4       /etc/asterisk/scripts/WXA/oobuild 46
# 58 18 1-7 * 4       /etc/asterisk/scripts/WXA/ooclear 50

The cron log shows ...

[root at KF5VH-AS1 log]# grep /oo cron
cron.1:Apr  3 00:06:01 KF5VH-AS1 crond[7629]: (root) CMD 
(/etc/asterisk/scripts/WXA/oobuild 46)
cron:Apr  3 18:58:01 KF5VH-AS1 crond[7196]: (root) CMD 
(/etc/asterisk/scripts/WXA/ooclear 50)
cron:Apr  4 00:06:01 KF5VH-AS1 crond[30169]: (root) CMD 
(/etc/asterisk/scripts/WXA/oobuild 46)
cron:Apr  4 00:07:01 KF5VH-AS1 crond[30264]: (root) CMD 
(/etc/asterisk/scripts/WXA/oobuild 44)

The first two lines should run on Monday.  The second two lines should 
run on Tuesday.
The last two lines should run on the first Thursday of each month.

...STeve - KF5VH




More information about the App_rpt-users mailing list