- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ksh return code
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
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
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-24-2006 01:48 AM
10-24-2006 01:48 AM
ksh return code
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:00 AM
10-24-2006 02:00 AM
Re: ksh return code
afraid you have to debug your script as the return code can be set, by for example "exit 64".
Include "set -x" near the start of your script to trace.
You may also want to have a look at:
http://forums1.itrc.hp.com/service/forums/helptips.do?#22
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:11 AM
10-24-2006 02:11 AM
Re: ksh return code
# grep 64 sysexits.h
# define EX__BASE 64 /* base value for error messages */
# define EX_USAGE 64 /* command line usage error */
Try to run sript with -x option to see more details.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:13 AM
10-24-2006 02:13 AM
Re: ksh return code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:40 AM
10-24-2006 02:40 AM
Re: ksh return code
According to this scripting guide:
http://www.aero.jussieu.fr/services/INFO/documentation/mendel/HTML/exitcodes.html
the recommended user-defined range for exit codes is 64-113.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:46 AM
10-24-2006 02:46 AM
Re: ksh return code
set -x
at the top of the script. When the script fails, you'll see what it was trying to do. If the script tried to run a built-in function, you'll need to add the set -x to the function to get the exact failure.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2006 10:35 PM
10-25-2006 10:35 PM
Re: ksh return code
as you have not updated this thread I assume the problem is resolved ?
Please see http://forums1.itrc.hp.com/service/forums/helptips.do?#22 to reward the work the contributors have put into resolving your problem and then close this thread summarising the solution. This will help future problem resolution.
From your profile I see you have not allocated any points to any answers to your post(0 for 10)!