- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: substitute of 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
тАО12-22-2009 10:43 AM
тАО12-22-2009 10:43 AM
Is there any guidelines which needs to be taken care in order to use the crons efficiently??
Please also mention that, Is there any substitute available like cron in Hp-UX??
Regards,
Amit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 10:52 AM
тАО12-22-2009 10:52 AM
Re: substitute of cron jobs!!
Sorry, I'm not really sure what you're asking with your first question.
In regard to your second, however, you can use at to substitute for cron. Some thing like this:
echo "/full/path/myscript" | at 02:00 tomorrow
Putting that line in /full/path/myscript will reschedule myscript every time myscript is run.
Other than that you would probably need to look into some sort of job scheduler software.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 10:55 AM
тАО12-22-2009 10:55 AM
Re: substitute of cron jobs!!
planning? I guess it depends on what you mean by "using effieciently". cron is what it is, a time-based scheduler.
"Please also mention that, Is there any substitute available like cron in Hp-UX??"
try googling "unix cron replacement". you'll get bunches of hits.
There are also commercial-available tools that are far more advanced than cron that have more options, like ControlM and Dollar Universe.
Again, it depends on what you want to do.....and why you think you may need to / want to "replace" cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 11:27 AM
тАО12-22-2009 11:27 AM
SolutionHow about controlling who has rights to run via cron (cron.allow)?
How about making sure your cronjobs are current, and not polluted with old jobs or pointing to no longer existing 'things' you don't need running anymore?
How about consolidating some jobs, like some HPUX cleanup jobs put into one script?
How about making sure if your running a high available environment that all the boxes have everything in cron they need?
How about making sure you have backup copies of your root cron? Remember it's just a file and it too can be corrupted.
If you want to purchase some third party vendor to schedule jobs, that's an option. But I tend to keep those pieces of software for apps jobs, while keeping HPUX Admin stuff within cron.
Just some thoughts,
Rita
But each to his (or her) own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 07:32 AM
тАО12-23-2009 07:32 AM
Re: substitute of cron jobs!!
Why would you want that? Replacing a solid, trustworthy tool with a newly-created buggy one from a 3rd party?
If you are masochistic, you could write your own scheduler, it's basically an infinite while loop checking a queue list every second. But i would skip with this idea and stay with the good'ol cron. ;)
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 07:44 AM
тАО12-23-2009 07:44 AM
Re: substitute of cron jobs!!
it occurs to me another thing: if you are using Serviceguard, then the cronjobs of the 'package user' (the user in which name of the application starts, eg. oraSID) should be stored on the shared disk. So, when the package started the cron will be pulled from an external file:
$ crontab cronfile
and by stopping the package the cron will be exported back to the file and after that removed like this:
$ crontab -l > cronfile
$ crontab -e
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2010 04:22 AM
тАО06-12-2010 04:22 AM