- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cronjob question?
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
06-12-2002 07:19 AM
06-12-2002 07:19 AM
I just need that it does not start-up the data base on a one single particular day.
How do I do that ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:26 AM
06-12-2002 07:26 AM
Re: cronjob question?
#min hour date month day cmnd
00 18 * * 1-3,5-7 start_script
Will run the command start_script
Mon-Wed and Thur-Sun.
Hope this helps.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:27 AM
06-12-2002 07:27 AM
Re: cronjob question?
The easist way is to skip that day in your crontab. For instance:
00 01 * * 0,1,2,4,5,6 /home/jrf/db.sh
...this would run at 0100 every day but day=3 (or Wednesday).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:27 AM
06-12-2002 07:27 AM
Re: cronjob question?
Depends - which day?
Day of the month - say the 21st
1 0 21 * * /path/to/command
Day of week - say Monday
1 0 * * 1 /path/to/command
A particular Monday every month - say the 3rd Monday
1 0 15,16,17,18,189,20,21 * 1 /path/to/command
If you just want to run this say every 21 days the best way is to use the at command & the ending command of the at command would be to make another at command destined for 21 days later.
If it's ONLY once then definitely use that at command.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:29 AM
06-12-2002 07:29 AM
Re: cronjob question?
0= Sunday.
I was thinking the date command days.
Use Chris's or a combo.
Embarassed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:33 AM
06-12-2002 07:33 AM
Re: cronjob question?
There are two ways to do it :
0 6 * * 0 1 2 3 4 6 /
not to run on day 5 ie friday
or run it for the other days individually.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:36 AM
06-12-2002 07:36 AM
Re: cronjob question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 07:37 AM
06-12-2002 07:37 AM
Re: cronjob question?
Yes just exclude the day from command. Earlier responses are right on.
But let's add the xth day of the month
Let's say the 21st
1 0 1-20,22-31 * * /path/to/start_command
Now let's say the x day of the xth week
In this case the 3rd Monday
1 0 1-14,22-31 * 1 /path/to/start_command
HTH,
Jeff