- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cron Job Scheduel
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
Forums
Discussions
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
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
12-12-2008 05:54 PM
12-12-2008 05:54 PM
I would like to schedule a cronjob which will execute the job every friday & Saturday every 30 Min.
So can i use 30 * * * 5,6 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2008 06:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2008 09:20 PM
12-12-2008 09:20 PM
Re: Cron Job Scheduel
0,30 * * * 5,6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2008 09:21 PM
12-12-2008 09:21 PM
Re: Cron Job Scheduel
15,45 * * * 5,6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2008 06:13 AM
12-13-2008 06:13 AM
Re: Cron Job Scheduel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2008 06:18 AM
12-13-2008 06:18 AM
Re: Cron Job Scheduel
A crontab file has five fields for specifying day , date and time followed by the command to be run at that interval.
cat
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2008 06:26 AM
12-13-2008 06:26 AM
Re: Cron Job Scheduel
Duh! I'm sorry, Dennis is correct. You said *every* 30-minutes, not only at 30-minutes after the hour.
/* no points for my mistake nor this correction, please */
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2008 09:08 AM
12-13-2008 09:08 AM
Re: Cron Job Scheduel
0,30 * * * 5,6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2008 10:23 AM
12-13-2008 10:23 AM
Re: Cron Job Scheduel
If you want "...every friday & Saturday every 30 Min" then:
0,30 * * * 5,6
If you want "...1.00 AM on Friday until saturday frequency s every 30 min"...
If you mean 1:00am Friday until midnight Friday (i.e. until Saturday), then:
0,30 1-23 * * 5
(this will not run at 00:00 Saturday)
If you mean something else, you're going to have explain it again, and be very precise in your description.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2008 05:25 PM
12-13-2008 05:25 PM
Re: Cron Job Scheduel
0,30 1-23 * * 5 # (this will not run at 00:00 Saturday)
Yes, 23*2 times. If you want to run one more time, you would need to add another line in crontab. Or you could expand the times in crontab and do the fine checking in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2008 08:44 PM
12-14-2008 08:44 PM
Re: Cron Job Scheduel
This is the correct way to schedule job
0,30 * * * 5,6 /fullpath of u r command/script
Suraj