- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To schedule a job every 2.30 hours interval throug...
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
тАО02-28-2006 09:11 PM
тАО02-28-2006 09:11 PM
To schedule a job every 2.30 hours interval through crontab...
If yes, How?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 09:14 PM
тАО02-28-2006 09:14 PM
Re: To schedule a job every 2.30 hours interval through crontab...
this is easier done with the at command.
man at
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 09:18 PM
тАО02-28-2006 09:18 PM
Re: To schedule a job every 2.30 hours interval through crontab...
It is not possible. For this to achive you can schedule more than jobs. Scheduling two shall be enough.
at will not work as this will execute the job only once.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 09:26 PM
тАО02-28-2006 09:26 PM
Re: To schedule a job every 2.30 hours interval through crontab...
You cannot acheive a cyclic run with a time interval of 2 1/2 hours with cron. That would be possible with enterprise Job scheduler like BMC's Control M product etc...
If you want to run a script/command every 2 1/2 hours.. just write a script to run the program with sleep command.say u want to run /usr/bin/ls every 2 1/2 hours.. then my ksh script will look like..
#!/usr/bin/ksh
while true
do
/usr/bin/ls
sleep 9000
done
When u run this script, it will run "ls" command indefinitely with a interval gap of 2 1/2 hours.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 09:51 PM
тАО02-28-2006 09:51 PM
Re: To schedule a job every 2.30 hours interval through crontab...
But I want run it through a schedule job. So that manual intervention is not required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 10:06 PM
тАО02-28-2006 10:06 PM
Re: To schedule a job every 2.30 hours interval through crontab...
at now +150 minutes /full_path/myscript
Make the last line in your script read like this:
echo "/full_path/myscript" | at now + 150 minutes
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 10:19 PM
тАО02-28-2006 10:19 PM
Re: To schedule a job every 2.30 hours interval through crontab...
As indicated earlier schedule two jobs for doing the same function at an interval of every 5 hours for both of them and at a difference of 2 & half hours among both of them.
crontab entry for such job should look like
For first job
00 1,6,11,16,21 * * *
For Second job
30 3,8,13,18,23 * * * /command
This will achive your task but with one interval being of 1&half hours instead of 2& half. This can be avoided by making a few more jobs and reducing the frequency in these two.
Other option as mentioned earlier can be used by running the code in the background and using sleep function.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 11:19 PM
тАО02-28-2006 11:19 PM
Re: To schedule a job every 2.30 hours interval through crontab...
whether 'at'(your suggestion) will run every 2.3 hours interval automatically? Or I have to submit the job manually at every specified interval ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2006 11:25 PM
тАО02-28-2006 11:25 PM
Re: To schedule a job every 2.30 hours interval through crontab...
the at command will run 2.5 hours from the end of the previous job. No manual intervention is required, unless the job is killed. To start the job automatically at runtime, include in the /etc/rc3.d level.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 07:54 PM
тАО03-01-2006 07:54 PM
Re: To schedule a job every 2.30 hours interval through crontab...
Then in the script create a check that the invocation is one that you wish to progress with. You can implement this using control files or other means.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 10:08 PM
тАО03-01-2006 10:08 PM
Re: To schedule a job every 2.30 hours interval through crontab...
echo "/full_path/myscript" | at now + 150 minutes
Pete
Pete