HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Exit Codes
Operating System - HP-UX
1827294
Members
2297
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-23-2000 09:32 AM
05-23-2000 09:32 AM
Exit Codes
What are the exit codes on HP-UX 11.0 and what do they mean? Also, what specifically is exit code 2?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2000 12:10 PM
05-23-2000 12:10 PM
Re: Exit Codes
There really is no standard for exit codes...each program defines its own. So you need to look at the man page for the particular command.
For example, "man cpio" tells us that a 2 means out-of-phase error. But "man frecover" says 2 means "error conditions prevent the session from completing".
There is somewhat of a standard throughout unix that 0 means success and non-zero means failure of some kind. Even that is not completely followed. So check the man page to be sure.
For example, "man cpio" tells us that a 2 means out-of-phase error. But "man frecover" says 2 means "error conditions prevent the session from completing".
There is somewhat of a standard throughout unix that 0 means success and non-zero means failure of some kind. Even that is not completely followed. So check the man page to be sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2000 12:59 AM
05-24-2000 12:59 AM
Re: Exit Codes
Hi:
System programs use to return exit codes as described in /usr/include/errno.h ( really in /usr/include/sys/errno.h. At least it should be so.
i.e: dd returns $?=5. If you look 5 in errno.h this is I/O error.
Note than i have said system programs, no users programs.
But what paul said is really true.
i.e.: last versions of tar returns 5 if when extracting if same file owner is not in passwd.
HTH
System programs use to return exit codes as described in /usr/include/errno.h ( really in /usr/include/sys/errno.h. At least it should be so.
i.e: dd returns $?=5. If you look 5 in errno.h this is I/O error.
Note than i have said system programs, no users programs.
But what paul said is really true.
i.e.: last versions of tar returns 5 if when extracting if same file owner is not in passwd.
HTH
unsupported
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP