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
- 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
12-04-2006 05:58 PM
12-04-2006 05:58 PM
cronjob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:04 PM
12-04-2006 06:04 PM
Re: cronjob
25 * * * * /path/to/jop
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:09 PM
12-04-2006 06:09 PM
Re: cronjob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:15 PM
12-04-2006 06:15 PM
Re: cronjob
Better yet, just use 30. For 30 you would use:
0,30 * * * * /path/to/jop
If you really really wanted to use 25, you would have to list all 57 values of 25 minutes in a 24 hour day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:16 PM
12-04-2006 06:16 PM
Re: cronjob
every 90mins would be: (suppose it started midnight: 1:30, 3:00, 4:30, 6:00, 7:30, 9:00, 10:30, 12:00, 13:30, 15:00, 16:30, 18:00, 19:30, 21:00, 22:30, 00:00)
#*******************************************************************************
# min|hour |day |month|day |script
# | |of mo| |of wk|
#----|-----|-----|-----|-----|--------------------------------------------------
#*******************************************************************************
30 1,4,7,10,13,16,19,22 * * * /path/to/job
00 3,6,9,12,15,18,21,00 * * * /path/to/job
#*******************************************************************************
# END OF TABLE day0->Sunday day6->Saturday
#*******************************************************************************
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:20 PM
12-04-2006 06:20 PM
Re: cronjob
00 00,03,06,09,12,15,18,21 * * * command
30 01,04,07,10,13,16,19,22 * * * command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:23 PM
12-04-2006 06:23 PM
Re: cronjob
if you want to "at" then it will be more simple since the time can be set relative to the last execution of the script.
e.g.
at -f /path/to/job +1.5 hours > /dec/null
(of course, you will need to set the appropriate permissions and include the command in the script itself)
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:29 PM
12-04-2006 06:29 PM
Re: cronjob
You can't use 1.5 so you need: +90 minutes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:29 PM
12-04-2006 06:29 PM
Re: cronjob
i.e. for KSH:
while true
do
job....
sleep 5400
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:31 PM
12-04-2006 06:31 PM
Re: cronjob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 06:37 PM
12-04-2006 06:37 PM
Re: cronjob
This code does its work then waits 90 minutes. Depending on how long it takes, it won't be every 90 but may be close enough. If you want it accurate, you can get the start time and add 90 minutes and then sleep the difference when you recompute the current time when you are at the end of the loop.
>sleep 5400
This may be confusing. Either add comments or use:
sleep $(( 90 * 60 ))