Operating System - HP-UX
1748156 Members
3689 Online
108758 Solutions
New Discussion

Re: crontab entry do not run on PM hours

 
NDO
Super Advisor

crontab entry do not run on PM hours

Hi All

I have a problem, I wonder if you can help me sort it out:

I have the following entry in the cron:

00 1,13 * * * /xxx/yyy/zzzz.ksh > ttttt.log

But the entry only runs at 01:00Am. I have stopped the cron deamon, and started, but it still does not work.

Can you help figure it out what is wrong with it?

FR

17 REPLIES 17
Patrick Wallek
Honored Contributor

Re: crontab entry do not run on PM hours

The crontab entry looks fine.  I don't see any obvious errors.

 

Is there any information in /var/adm/cron/log?

 

What about your ttttt.log file?

NDO
Super Advisor

Re: crontab entry do not run on PM hours

Hi

 

There is no error entry in the /var/adm/cron/log file. But the entry runs only for the 01:00

 

FR

Patrick Wallek
Honored Contributor

Re: crontab entry do not run on PM hours

Try setting up a separate line for the 1:00 PM execution:

 

00 1 * * * /xxx/yyy/zzzz.ksh > ttttt.log

00 13 * * * /xxx/yyy/zzzz.ksh > ttttt.log

NDO
Super Advisor

Re: crontab entry do not run on PM hours

Hi

 

The only entry that run was the one of 01:00AM, but this one:

00 13 * * * /xxx/yyy/zzzz.ksh > ttttt.log

did not run.

 

If I do grep "report" /var/adm/cron/log I can see an entry for the one executed at 01:00AM.

 

 

Patrick Wallek
Honored Contributor

Re: crontab entry do not run on PM hours

Can you run something else at 1:00 PM and see if it works? 

 

Try stopping and restarting cron.

 

# /sbin/init.d/cron stop

 

# /sbin/init.d/cron start

 

 

NDO
Super Advisor

Re: crontab entry do not run on PM hours

 

I have done that many times it only work for the 01:00AM entry, but I will do it again just before 01:00PM which is in about 21 hours from now, where I am :)

Dennis Handly
Acclaimed Contributor

Re: crontab entry do not run on PM hours

>I have done that many times it only work for the 01:00AM entry,

 

Are you using "crontab -e" or "crontab file" to edit your entries?

NDO
Super Advisor

Re: crontab entry do not run on PM hours

 

Hi

 

After stopping/starting, which did not solve the problem, a schedulled reboot has solved the problem.

Many thanks to all that contributed.

 

FR

NDO
Super Advisor

Re: crontab entry do not run on PM hours

yes, I am using crontab -e <user>