[vox-tech] cron - not at a different time

Peter Jay Salzman vox-tech@lists.lugod.org
Wed, 3 Mar 2004 09:35:24 -0800


On Wed 03 Mar 04,  9:24 AM, Jeff Newmiller <jdnewmil@dcn.davis.ca.us> said:
> On Wed, 3 Mar 2004, Ken Bloom wrote:
> 
> > 
> > On 2004.03.03 04:38, Peter Jay Salzman wrote:
> > > cron is running sometime around 7:30am:
> > > 
> > >  8646 ?        SN     0:00 run-parts --report /etc/cron.daily
> > >  8651 ?        SN     0:00 /bin/sh /etc/cron.daily/checksecurity
> > >  8678 ?        SN     0:00 /usr/bin/perl /usr/sbin/checksecurity
> > >  8714 ?        SN     0:00 /bin/sh /usr/share/checksecurity/check-setuid
> > >  8724 ?        RN     0:06 find / /boot /var /usr/local /home /data -xdev
> > > ( -fal
> > >  8725 ?        SN     0:00 sort
> > >  8733 ?        R      0:00 xterm -class UXTerm -title uxterm -u8
> > > p@satan$ date
> > > Wed Mar 03  7:37 AM
> > > 
> > > 
> > > yet, i think it should at 4:25am if i have my fields correct:
> > > 
> > > 
> > > SHELL=/bin/sh
> > > PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> > > 
> > > 17 * * * * root  run-parts --report /etc/cron.hourly
> > > 25 4 * * * root test -e /usr/sbin/anacron || run-parts --report
> > > /etc/cron.daily
> > > 47 6 * * 7 root test -e /usr/sbin/anacron || run-parts --report
> > > /etc/cron.weekly
> > > 52 6 1 * * root test -e /usr/sbin/anacron || run-parts --report
> > > /etc/cron.monthly
> > > 
> > > 
> > > why is the daily cron running at 7:30am?
> > 
> > What time did you start up the machine? The cron jobs will run through  
> > anacron shortly after startup if they haven't been run in a certain time  
> > period. Seeing as how my computer is always shutdown at 4:25am, my daily  
> > cronjobs always run shortly after I start up. If I started up the machine  
> > at 7:25, they'd run at about 7:30.
> 
> Another thought... did you use the "crontab -e" command to make the
> change to the crontab file?
 
excuse my ignorance.  for some reason, this is stuff that just doesn't
get stored into my long term memory...

from the top of /etc/crontab:

# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.


maybe i forgot to restart cron (is that necessary)?  i thought i did.

anyhow, i *definitely* restarted it just now and added another daily
system cron to print out date into /etc/cron.diagnostic.  i've been
waking up very early lately.  i'll see what happens and report tomorrow
morning...

pete

-- 
Make everything as simple as possible, but no simpler.  -- Albert Einstein
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D