- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron schedule for every last monday of every m...
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
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
тАО09-26-2011 06:15 AM
тАО09-26-2011 06:15 AM
Cron schedule for every last monday of every month
Hi
I am planning to scheduled a cron job which need to run every 4th monday of every month @ 8 Am. Can any one help me on this..
0 08 23-31 * 1 <script>
Is this correct or any modification needed.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2011 06:27 AM
тАО09-26-2011 06:27 AM
Re: Cron schedule for every last monday of every month
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2011 07:22 AM
тАО09-26-2011 07:22 AM
Re: Cron schedule for every last monday of every month
you can't do what you're wanting strictly with cron.
you need to add coding within your script to test the date to know whether or not to proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2011 07:36 AM - edited тАО09-26-2011 07:36 AM
тАО09-26-2011 07:36 AM - edited тАО09-26-2011 07:36 AM
Re: Cron schedule for every last monday of every month
Donna is right - at least the search function is also not that bad, check this one:
http://h30499.www3.hp.com/t5/System-Administration/cron-on-3rd-friday/m-p/3075377#M141529
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2011 12:07 PM
тАО09-26-2011 12:07 PM
Re: Cron schedule for every last Monday of every month
>at least the search function is also not that bad
Right.
Note: that last Monday isn't the same as 4th Monday.
And to make your script simple, include the date range in crontab and check for Monday in your script:
0 08 25-31 * * <script> last
0 08 22-28 * * <script> 4th