- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Interpretation of cron - easy points
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
11-15-2005 09:15 AM
11-15-2005 09:15 AM
0 3 28 10 5
Run at 3 AM every Friday or 28th day of October.
0 3 25 10 2
Run at 3 AM every Tuesday or 25th day of October.
00 03 08 11 2
Run at 3 AM every Tuesday or 8th day of November.
Am I correct?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:23 AM
11-15-2005 09:23 AM
Re: Interpretation of cron - easy points
0 3 28 10 5
Will run your command on Oct. 28 AND every Friday.
0 3 25 10 2
will run your command on Oct. 25 AND every Tuesday.
00 03 08 11 2
Will run your command on Nov. 8 AND every Tuesday.
The values are cumulative. Have a look at 'man crontab' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:23 AM
11-15-2005 09:23 AM
Re: Interpretation of cron - easy points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:40 AM
11-15-2005 09:40 AM
Re: Interpretation of cron - easy points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:41 AM
11-15-2005 09:41 AM
Re: Interpretation of cron - easy points
Sorry I slightly misread your interpretations the first time around. Yes you are correct. I somehow originally saw it without the 'or' separating your week days and dates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:42 AM
11-15-2005 09:42 AM
Re: Interpretation of cron - easy points
Let's take:
0 3 25 10 2
Run at 3 AM every Tuesday or 25th day of October.
In my wording above some people think it includes Tuesdays outside of October as well. Which is not what I meant.
So that begs the question...will it run on Tuesdays in months other than October?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:54 AM
11-15-2005 09:54 AM
Re: Interpretation of cron - easy points
will run on Oct. 25 AND EVERY TUESDAY.
Basically if the day is Tuesday, the job runs. OR if the date is Oct. 25, the job runs.
It doesn't matter if the Tuesday is in Oct., Nov., Dec., or whatever. It'll run every Tuesday.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:59 AM
11-15-2005 09:59 AM
Re: Interpretation of cron - easy points
However I have the jobs setup with those cron settings but they fail to run on the weekday specified (Tuesday or Friday).
Any suggestions on where to start troubleshooting this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 10:12 AM
11-15-2005 10:12 AM
Re: Interpretation of cron - easy points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 10:20 AM
11-15-2005 10:20 AM
Re: Interpretation of cron - easy points
And I wanted to reverse engineer the problem because that usually generates more accurate answers.
But I am in the process of getting a description from the user of when they want the jobs run. Will post when available.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 05:14 AM
11-16-2005 05:14 AM
Re: Interpretation of cron - easy points
So I told them to take out the "day of week".
Example
00 03 08 11 *
To run the job ONLY on November 8th.
When she used
00 03 08 11 2
It would run everyt Tuesday as well which is not what she wanted.
That works right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 05:44 AM
11-16-2005 05:44 AM
Re: Interpretation of cron - easy points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2008 03:53 AM
04-17-2008 03:53 AM
Re: Interpretation of cron - easy points
Sorry it took 2 years to assign them !!
Cheers