- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: When will at jobs run this weekend?
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
Discussions
Discussions
Forums
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
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
тАО10-24-2001 03:21 AM
тАО10-24-2001 03:21 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 03:26 AM
тАО10-24-2001 03:26 AM
Re: When will at jobs run this weekend?
see "man cron" for DST topic. It is explained, even with examples.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 03:27 AM
тАО10-24-2001 03:27 AM
Re: When will at jobs run this weekend?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 03:29 AM
тАО10-24-2001 03:29 AM
Re: When will at jobs run this weekend?
the lazy way :
launch them as one job, and put a sleep command between the two steps ;-)
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 03:37 AM
тАО10-24-2001 03:37 AM
Re: When will at jobs run this weekend?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 03:56 AM
тАО10-24-2001 03:56 AM
Re: When will at jobs run this weekend?
If you want it to be only down for 10 minutes,
consider to schedule a cronjob at 01:55 that starts at 01:05 only on this specific sunday.
05 01 28 10 * my_job
But keep in mind, that if you run a database application, you might get timestamp confusion.
I.e. an internet-order made at 1:40 may be canceled at 01:20 (later). So perhaps it is better to keep it down for 70 minutes.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 06:13 AM
тАО10-24-2001 06:13 AM
Re: When will at jobs run this weekend?
Can someone tell me ...
Is this because the execution time in converted to UCT when the at job is subitted?
Is the time change at 1:59 this weekend as is implied by tztab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 06:36 AM
тАО10-24-2001 06:36 AM
Re: When will at jobs run this weekend?
I thought of several things but they would fail according to the cron manpage which says that cron jobs scheduled during an ambigious time (happens during the October time change) are only executed the first time. In your case that would mean 01:00 - 02:00 BST and they would not run during 01:00 - 02:00 GMT.
I think Volker has the solution. Set up your cron to run a job to set inquiry mode at 1:55. At 1:58 have a cron job that reloads your crontab from a saved and edited copy. The edited file should contain everything your current crontab has plus an entry to set update mode at 1:05. Be sure it doesn't contain the job that set inquiry mode.
You crontabs could look like:
Pre time change crontab:
55 1 28 10 0 script to set inquiry
58 1 28 10 0 crontab new_crontab_file
normal cron entries follow
Post time change crontab (new_crontab_file):
5 1 28 10 0 script to set update mode
normal cron entries follow
Result should be:
1:55 BST set inquiry mode
1:58 BST replace crontab
1:05 GMT set update mode
If it makes you feel better, your scripts to set update and inquiry modes could check `date +%Z` for the time zone and only set inquiry if it returns BST and only set update if it returns GMT. I don't believe you'll need that though.
This was a good puzzle. Good luck!
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 06:37 AM
тАО10-24-2001 06:37 AM
Re: When will at jobs run this weekend?
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=19c040c8175197a030/screen=ckiDisplayDocument?docId=200000025411328
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=19c040c8175197a030/screen=ckiDisplayDocument?docId=200000026056381
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 06:37 AM
тАО10-24-2001 06:37 AM
Re: When will at jobs run this weekend?
Wait a minute (no pun!). The system's internal clock DOES NOT CHANGE. Time is maintained in UTC (GMT, if you prefer).
What a user sees, or wishes to see, is determined by the TZ environmental variable. The man pages for 'cron' (1M) and those for 'tztab' (man 4 tztab) will give you a good understanding of how time is externally represented and apparently changed during daylight savings time transitions.
The man pages for 'cron' will also describe the behavior of the time transition, in particular:
"...an ambiguous time refers to an hour and minute that occurs twice in the same day because of a daylight savings time transition (usually on a day during the Autumn season)...
When a command is specified to run at an ambiguous time, the command is executed only once at the first occurrence of the ambiguous time."
Databases, and other applications that wish to keep timestamps would call gmtime() [see 'man 3C ctime'], thereby avoiding the apparent time issue alltogether.
Hopefully this clarifies your questions.
Regards!
..JRF...