- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Addendum to my cron woes
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
тАО06-05-2011 10:48 PM
тАО06-05-2011 10:48 PM
Addendum to my cron woes
I checked the mail for oraprod, (the offeding user that won't run the cron job.) I get this when the scripts attempts to run through cron:
The Configuration file cfg/install.cfg does not exist
Any ideas? The same guys who responded to my last one, if you will repond to this, I will distribute points accordingly. I'm good about that.
Regards,
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2011 11:18 PM - last edited on тАО08-08-2011 01:39 PM by Kevin_Paul
тАО06-05-2011 11:18 PM - last edited on тАО08-08-2011 01:39 PM by Kevin_Paul
Re: Addendum to my cron woes
Shalom Ron,
Is the system trusted? There is a special procedure for enabling cron for certain users on a trusted system.
The error you report has nothing to do with cron. It is with the script you are running.
Since its past bed time and I'm working on a broke system. I will give you the fix to get the cron job working trusted without confirmation.
http://h30499.www3.hp.com/t5/System-Administration/crontab-don-t-run-in-trusted-system/m-p/3345484#M191545
http://h30499.www3.hp.com/t5/System-Administration/how-to-enable-the-crontab-for-user-in-hpux/m-p/5234822#M468957
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
тАО06-05-2011 11:26 PM
тАО06-05-2011 11:26 PM
Re: Addendum to my cron woes
As "man crontab" says, the default environment for cron jobs is very minimal (this example from HP-UX 11.23):
----
HOME=user's-home-directory
LOGNAME=user's-login-id
PATH=/usr/bin:/usr/sbin:.
SHELL=/usr/bin/sh
----
The cron job script should set up all the necessary environment variables itself, either by running /etc/profile and $HOME/.profile, or by explicitly initializing the variables it needs.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2011 11:42 PM
тАО06-05-2011 11:42 PM
Re: Addendum to my cron woes
What should the command line look like then? Right now it's /u03/oracle/oraprod/backup/do_backup.sh
Should I add in $HOME/.profile before the command? The man page is not real specific on this point.
Regards,
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 04:02 AM
тАО06-06-2011 04:02 AM
Re: Addendum to my cron woes
> Should I add in $HOME/.profile before the command? The man page is not real specific on this point.
In my opinion, no, because unless you have conditioned the terminal-specific commands like 'stty' to be run only if your shell is an interactive one, you will end up with the "not a typewriter" messages which if un-redirected will cause 'cron' to create mail for you.
A far better alternative is to either declare the variables you need in your script or to source (read) a file containing them:
# . /home/oracle/envvars
Note the dot followed by whitespace. If you choose this technique you could also remove hard-coded variables from the profile and simply source the external file. This has the additional advantage of having only one place (file) to add, modify or delete requisite variables.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 04:18 AM - last edited on тАО08-02-2011 07:12 AM by Kevin_Paul
тАО06-06-2011 04:18 AM - last edited on тАО08-02-2011 07:12 AM by Kevin_Paul
Re: Addendum to my cron woes
Your previous thread:
http://h30499.www3.hp.com/t5/System-Administration/cron-woes/m-p/5283860#M474719
>Should I add in $HOME/.profile before the command?
You could but it may be easier to just put it in your script with a comment about crontab?
Otherwise something like:
00 03 * * * . $HOME/.profile; /u03/oracle/oraprod/backup/do_backup.sh