- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab behaviour
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
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
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
04-23-2013 06:36 AM
04-23-2013 06:36 AM
crontab behaviour
Hi
Last week i scheduled a cron job to run at 0945 Wed 17 April.
I scheduled the following:
45 9 17 4 2
By mistake I put '2' for Wednesday, where I should've put '3'.
The thing is it ran OK last Wednesday, despite the day number being wrong (2, not 3), and having not removed the job, it also ran this morning, with the date being wrong (25, not 17). How can that be? Is that normal bahaviour?
Looks like it'll run every Tuesday in April?
Regards
Tariq
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2013 06:47 AM
04-23-2013 06:47 AM
Re: crontab behaviour
From "man crontab":
Note that the specification of days can be made in two fields: monthday and weekday. If both are specified in an entry, they are cumulative. For example, 0 0 1,15 * 1 command runs command at midnight on the first and fifteenth of each month, as well as every Monday. To specify days in only one field, set the other field to asterisk (*). For example, 0 0 * * 1 command
So the job you scheduled would run on every Tuesday in April, *and* on April 17 every year whether it is Tuesday or not.