Re: cron jobs not running

From: Bob Meyers (oregonbob2000_at_yahoo.com)
Date: 03/02/04


Date: Mon, 1 Mar 2004 19:30:07 -0800


"Noi" <noi@siam.com> wrote in message
news:pan.2004.03.01.16.28.10.123015@siam.com...
> On Sun, 29 Feb 2004 17:43:10 -0800, Bob Meyers thoughtfully wrote:
>
> > On RedHat 8.0, if I am testing a background shell script to be run by
cron,
> > I can do add an entry in crontab, via 'crontab -e', with the minute
field
> > set to a couple of minutes in advance of current time. It seems these
jobs
> > will not run, with absolutely no entry/explanation in email or
> > /var/log/cron. If I edit the same crontab line and put a "*" for every
> > minute, it runs fine.
> >
> > Say it is now 17:30, if I enter crontab line
> >
> > 34 17 * * * /usr/local/bin/myscript
> >
> > Then wait until time is 17:40 and nothing happens. If I change it to
read
> >
> > * 17 * * * /usr/local/bin/myscript
> >
> > It works fine. Is there something I am missing?
>
> Any messages in /var/log/cron ?
> Mar 1 04:00:00 enterprise CROND[14625]: (root) CMD
(/home/noi/programs/chkrootkit.sh)
> Mar 1 04:01:01 enterprise CROND[15529]: (root) CMD (run-parts
/etc/cron.hourly)

Yes, I do have messages like your examples above. And when I checked it
today, 24 hours later, it did run myscript ok. So it appears that if I try
to schedule a job for only a few minutes ahead it won't run, but the above
example did indeed run at that time the next day. So cron is not responding
(running) to new jobs right away, even though /var/log/cron indeed shows it
has re-read the new job list after a "crontab -e", here are some typical
notations after an edit:
Feb 29 17:35:00 myhost crontab[24294]: (root) LIST (root)
Feb 29 16:35:00 myhost crond[731]: (root) RELOAD (cron/root)
Feb 29 17:37:00 myhost crontab[24320]: (root) LIST (root)



Relevant Pages

  • Re: daily cron jobs: setting time of day, how?
    ... > Which cron daemon are you running? ... > Vixie cron - this runs jobs at the scheduled hour. ... > anacron - runs jobs within a period ...
    (alt.os.linux.suse)
  • Re: centralized cron
    ... >>hundreds of servers, each with their own cron jobs set up, and would ... Using ssh to run crontab ... You're talking about a "job scheduling" software package. ...
    (comp.unix.questions)
  • Re: centralized cron
    ... >>hundreds of servers, each with their own cron jobs set up, and would ... Using ssh to run crontab ... You're talking about a "job scheduling" software package. ...
    (comp.unix.admin)
  • Re: job in crontab not running
    ... Are your servers "slow" such as on a remote network or otherwise ... Without NSCD running cron jobs fail to run, ...
    (Debian-User)
  • Re: [Cron] Mails abstellen
    ... Andere Jobs sollen ja ruhig Mails generieren, ... Ich hoffe mal es "supresst" alles, dass Cron wirklich keine Mail ... PGP Key available on public key servers ...
    (de.comp.os.unix.linux.misc)