- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Configuring cron jobs.
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
тАО05-17-2004 07:41 PM
тАО05-17-2004 07:41 PM
I want to schedule a job in cron to run on alternate Sundays. But I found this may not be possible, you can either give the dates or give the day of the week to run.
I tried giving as below
00 23 1-7, 24-30 * 0 /
But according to the man pages it will be cumulative, that is, this script will run on 1-7th and 24-30th of each month and, in addition, will run on each sunday.
Does anybody know how to make the cron jobs run only on alternate Sundays ?
I am using HP-UX 11i.
Regards,
Mohan.
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 07:50 PM
тАО05-17-2004 07:50 PM
Re: Configuring cron jobs.
do not think that is possible with crontab as it will not know which alternate sunday of the month you will like to run your job.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 07:55 PM
тАО05-17-2004 07:55 PM
Re: Configuring cron jobs.
The best way would be
Set in cron an entry to run every day at the correct start time. In the script check if day of week is Sun
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 07:57 PM
тАО05-17-2004 07:57 PM
Re: Configuring cron jobs.
Here we go again :-), i missed out something
Submit an entry in cron to run every day. This entry will run at a specified time every day and will check if today is SUN. If it is throw in an additional check to see when was the last run day and if the last run day is 14 days run your job.
If it sounds, confusing tell me and i shall give some more details :-)
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 07:59 PM
тАО05-17-2004 07:59 PM
SolutionI would also suggest that you review similar topic in these forums and i am sure that will guide you through and will have more options
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=535974
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 08:00 PM
тАО05-17-2004 08:00 PM
Re: Configuring cron jobs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 08:30 PM
тАО05-17-2004 08:30 PM
Re: Configuring cron jobs.
Joseph's reply indicated the inability of cron to do this job on its own.
Mobeen and Jeff gave the suggestions to solve this issue. The thread provided by Mobeen gives a good idea about solving this issue.
Thanks once again all of you for the speedy replies.
Cheers,
Mohan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 07:39 PM
тАО01-05-2005 07:39 PM