- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rc code in cron log
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
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
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
тАО08-19-2005 08:53 AM
тАО08-19-2005 08:53 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2005 09:01 AM
тАО08-19-2005 09:01 AM
Re: rc code in cron log
For example if the following were executed by cron,
#!/usr/bin/sh
typeset STAT=255
if [[ -f /etc/myfile ]]
then
STAT=0
fi
exit ${STAT}
it would produce rc=255 unless the file /etc/myfile were found.
In UNIX a zero status normally means ok but anything else means what the programmer/script writer intended for it to mean. By convention, the return result should try to match those in /usr/include/sys/errno.h but those only go so far.
You really have to find the script/program that is executing with the timestamp and then see what would cause it to exit with 255. This is not cron itself but rather what cron is executing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2005 09:06 AM
тАО08-19-2005 09:06 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=86561
A guess, is the environment setup correctly? The cron has a very sparse environment. You must provide PATH to the commands in the cron.
What is it you were tyying to run via cron?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2005 09:14 AM
тАО08-19-2005 09:14 AM
Re: rc code in cron log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2005 09:18 AM
тАО08-19-2005 09:18 AM
Re: rc code in cron log
If so, then I agree with Clay, the command itself is producing the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2005 09:34 AM
тАО08-19-2005 09:34 AM
Re: rc code in cron log
onstat -o
in cron, you'll get: GLS initialization failed, error -23101
which means: Informix has no clue what instance you want or where the config files are located. You'll need to create an encapsulation witha shell script that matches your working login, then put the command inside the script.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2005 10:35 AM
тАО08-19-2005 10:35 AM
Re: rc code in cron log
> CMD: /home/lcdhs/convert-script/convert00
> lcdhs 10035 c Fri Aug 19 14:35:00 PDT 2005