- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Survey: Best Practice on cronjob location
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
10-14-2004 03:36 AM
10-14-2004 03:36 AM
Survey: Best Practice on cronjob location
I'm of the opinion /root/cron (Or /home/root/cron)
Opinions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 03:41 AM
10-14-2004 03:41 AM
Re: Survey: Best Practice on cronjob location
For reference I currently use /usr/local/housekeeping/. Also if you package them up in a bundle, you can easily distribute them to all your servers. I'd prefer to use /root/ for temporary scripts.
It's all personal opinion really, no hard-and-fast rules, except the permissions!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 03:41 AM
10-14-2004 03:41 AM
Re: Survey: Best Practice on cronjob location
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 03:41 AM
10-14-2004 03:41 AM
Re: Survey: Best Practice on cronjob location
For root / sys-admin / house cleaning scripts I prefer /home/root/scripts.
If you have things that are ONLY run from cron, I might then use /home/root/cron, but I have very few like that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 03:42 AM
10-14-2004 03:42 AM
Re: Survey: Best Practice on cronjob location
/usr/contrib/bin
Because they are user contributed scripts, with the user sometimes being a dba, me or even a programmer.
We keep oracle scripts in a different location, as well as other applications. Still, in general, /usr/contrib/bin works for us.
We keep permissions tight so syadmin has control of what code runs.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 03:43 AM
10-14-2004 03:43 AM
Re: Survey: Best Practice on cronjob location
It is easy to manage and put all root related stuff there. As a root, I do lot os scripts, collect data and things like that. So I do not want to go on looking for it at different places. good to put it in /home/root or /root
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 03:45 AM
10-14-2004 03:45 AM
Re: Survey: Best Practice on cronjob location
/pro for PROCURA, where all is installed that is - well - needed for procura applications and not part of the base system
/usr/local/scripts might be a suggestion, but your /home/root/cron sounds sensible too
Maybe more important than where the *scripts* are located is where you gather the log(s)
/var/tmp
/var/cron.out
/tmp
/usr/tmp
/home/root/cron.out (bad choice IMHO)
or to mail
Whatever you choose, be sure you READ the log!
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 03:52 AM
10-14-2004 03:52 AM
Re: Survey: Best Practice on cronjob location
We keep a separate file system for all our applications called /apps, with it's own directory structure beneath to keep everything organized. Originally it was intended strictly for our own application programs, but after losing a script that was probably in /usr/local/bin (or something like that) during an install, I decided to take advantage of that separate file system for all my root scripts as well.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:02 AM
10-14-2004 04:02 AM
Re: Survey: Best Practice on cronjob location
For example, I have some cron jobs run as root, but the scripts are in SAP filesystems - like /APPL
For OS, most of mine are in /usr/local/bin - with permissions 750
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:08 AM
10-14-2004 04:08 AM
Re: Survey: Best Practice on cronjob location
In the past, I've seen OS upgrades on non-HP systems (IBM & DEC) wipe-out everything in /usr/local and in root's home directory, so out of longstanding habit I don't put anything in either of those locations if I can avoid doing so.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:08 AM
10-14-2004 04:08 AM
Re: Survey: Best Practice on cronjob location
This is what I do in my setup.
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:23 AM
10-14-2004 06:23 AM
Re: Survey: Best Practice on cronjob location
Good question. We seem to keep ours in a few places:
/root_home/bin
/usr/local/bin
/opt/local/bin
We should standardize on one place, but we haven't. Maybe next time. :)
JP