Cron Strangeness

John Voigt jvoigt
Tue Sep 13 06:42:46 PDT 2005


Hi all,

I've run into an interesting problem with cron on SuSE (currently v8.2 Pro) 
where I have a couple of jobs which are supposed to run at the end of the month. 
The strange part is that both jobs (see below) run twice. The named-update 
script just updates the root.hint file for bind. The mailbackup archives a copy 
of everyone's Inbox and mail folders to a tarball which we can save to a DVD. 
The sucky part is that the mail snapshot is about 1.7GB in size, and it creates 
two of them, ie. 20050831.tgz and also 20050901.tgz. This uses a LOT of extra 
space on my daily backup tape.

 From /etc/crontab:

44 4  1 * *     root  rm -f /var/spool/cron/lastrun/cron.monthly

and then in cron.monthly I have:

-rwxr-xr-x  1 root  root    621 Aug  1 11:11 mailbackup*
-rwxr-xr-x  1 root  root   1444 Oct 14  2003 named-update*

Any thoughts on how to get the monthly script to only run once, or, 
alternatively, why is it running twice?

TIA,

John V.
-- 
   _/- John Voigt - K9GBO -----|- Registered Linux User #38558 --_/
  _/- System Administrator ----|- IN Dept of Natural Resources -_/
_/- jvoigt at reclamation.dnr.state.in.us - (812)665-2207 -------_/
A door is what a dog is perpetually on the wrong side of.
                 -- Ogden Nash



More information about the Linux-users mailing list