Re: cron jobs not running
From: Bob Meyers (oregonbob2000_at_yahoo.com)
Date: 03/02/04
- Next message: Ken: "binding a mount at bootup"
- Previous message: Spamless: "Re: printing man pages via lpr???"
- In reply to: Noi: "Re: cron jobs not running"
- Next in thread: Noi: "Re: cron jobs not running"
- Reply: Noi: "Re: cron jobs not running"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Next message: Ken: "binding a mount at bootup"
- Previous message: Spamless: "Re: printing man pages via lpr???"
- In reply to: Noi: "Re: cron jobs not running"
- Next in thread: Noi: "Re: cron jobs not running"
- Reply: Noi: "Re: cron jobs not running"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|