- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- substitute of cron jobs!!
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
substitute of cron jobs!!
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-22-2009 10:52 AM
12-22-2009 10:52 AM
Re: substitute of cron jobs!!
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-22-2009 10:55 AM
12-22-2009 10:55 AM
Re: substitute of cron jobs!!
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-23-2009 07:32 AM
12-23-2009 07:32 AM
Re: substitute of cron jobs!!
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-23-2009 07:44 AM
12-23-2009 07:44 AM
Re: substitute of cron jobs!!
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-12-2010 04:22 AM
06-12-2010 04:22 AM
Re: substitute of cron jobs!!
Re: substitute of cron jobs!!
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP