- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CRON issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 02:41 AM
03-02-2010 02:41 AM
CRON issue
ON HP-UX 11.31.
With this line in crontab file (and crontab -l),
30 06 2,8,15,22,29 * * sh prog.sh,
the program prog.sh started on March 1 at 06h30.
Why?
I suggest there is a bug and that March 1 is considered as Feb 29.
But there is no FEB 29 in 2010.
I suggest also that the bug exists when the command "crontab crontabfile" is executed before FEB 28 because I can't reproduce the anomaly with tests on March 1.
Please, you advise.
JMW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 02:56 AM
03-02-2010 02:56 AM
Re: CRON issue
I don't see why. It should be March 2 at that time of the morning. Did it just happen 5+ hours ago or was it yesterday?
What timezone setting to you have? TZ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 03:21 AM
03-02-2010 03:21 AM
Re: CRON issue
The anomaly appears yesterday on March 1.
Today, we are March 2.
Yesterday, the date on the system was March 1.
I checked this when the anomaly appears.
# cat /etc/TIMEZONE
TZ=MET-1METDST
export TZ
#
And this is the lines on /var/adm/cron/log
at March 1 around 6h30:
> root 25305 c Mon Mar 1 06:25:00 MET 2010
> CMD: /usr/sbin/dmesg - | tee -a /var/adm/messages | logger -t "dmesg[$$]" -p
user.warning
> root 25306 c Mon Mar 1 06:25:00 MET 2010
< root 25306 c Mon Mar 1 06:25:00 MET 2010
< root 25305 c Mon Mar 1 06:26:43 MET 2010
> CMD: /usr/local/bin/restartDB CC
> root 26165 c Mon Mar 1 06:30:00 MET 2010
> CMD: sh prog.sh
> root 26166 c Mon Mar 1 06:30:00 MET 2010
< root 26166 c Mon Mar 1 06:31:52 MET 2010
< root 26165 c Mon Mar 1 06:31:53 MET 2010
> CMD: /usr/sbin/dmesg - | tee -a /var/adm/messages | logger -t "dmesg[$$]" -p
user.warning
> root 27398 c Mon Mar 1 06:35:00 MET 2010
< root 27398 c Mon Mar 1 06:35:00 MET 2010
JMW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 03:49 AM
03-02-2010 03:49 AM
Re: CRON issue
I checked the environment and configuration with a colleague, because it seems unbelieval.
I want to know if another user encountered the same anomaly and if another user didn't encountered the anomaly on March 1 with a similar line in the crontab file.
First of all, please confirm my opinion!
According the definition of the cron,
a line like this in the crontab file should not execute the command on MARCH 1:
30 06 2,8,15,22,29 * * sh prog.sh.
JMW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 04:01 AM
03-02-2010 04:01 AM
Re: CRON issue
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 05:12 AM
03-02-2010 05:12 AM
Re: CRON issue
No computer available for testing.
Before further investigation, I want to receive advices of the readers of this forum.
JMW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 05:39 AM
03-02-2010 05:39 AM
Re: CRON issue
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2010 02:19 AM
03-03-2010 02:19 AM
Re: CRON issue
> CMD: sh prog.sh
> root 26166 c Mon Mar 1 06:30:00 MET 2010
< root 26166 c Mon Mar 1 06:31:52 MET 2010
It sure seems like it.
>I want to know if another user encountered the same anomaly
Probably too many factors for anyone but you. :-)
>According the definition of the cron, a line like this in the crontab file should not execute the command on MARCH 1:
30 06 2,8,15,22,29 * *
That's correct. You should make sure you have any cron patches PHCO_39042 and if you do, contact the Response Center.