Solved

error codes meaning on AIX

Posted on 2002-05-28
8
5,374 Views
Last Modified: 2013-12-06
Hi,
Where can I find a table with the meaning of all error codes on AIX? (such as when a perl program returns a non-zero code)
Many thanks,
Hilit
0
Comment
Question by:hilit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 4

Accepted Solution

by:
newmang earned 50 total points
ID: 7040574
The problem with this is that there are codes from just about every part of the system. There are codes returned when the syatem boots and these are easily obtained, there are codes from various parts of the operating system, again well documented and then there are codes from application software. You ask for codes caused when a perl program returns a non-zero code - in this case it rather depends on what the author of the perl script coded in the script and this will vary from script to script.

You should look at the perl script itself to work out what error code is returned under each circumstance to find out what the script is returning.
0
 
LVL 1

Author Comment

by:hilit
ID: 7041044
Well, this was a question by a co-worker, but I think the error code comes from system calls and he wanted to know what the error meant.
So is there a table for error codes for system calls (called from Perl if it helps)?
0
 
LVL 84

Expert Comment

by:ozo
ID: 7041054
man 2 intro
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:newmang
ID: 7041061
Again it depends on the individual call that returns the error code. You would need to determine what call is returning the error then use the man pages to determine what codes that call will return for various error states.

Cheers - Gavin
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7041269
> .. the error code comes from system calls ..
man <name of system call>
then check perl code (as already suggested) what it does with $?.

Each program has it's own idea about error/exit codes, usually. They are described in the docs/man-pages, usually.

Some codes are more of a general nature, see /usr/include/sys/errno.h
0
 
LVL 2

Expert Comment

by:bedot
ID: 7064744
Hi
there is an include file named errno.h that gives the name of system errors related to the number of the error:
this file, generally in /usr/include/sys;
with the symbolic name of the error, you can find an explanation if you use man errno command;
BUT explanations are very short!
if the error number is returned directly by a command and NOT by the system, you must take a look at the manual page of the command (generally at the end), as ahoffmann said.
0
 
LVL 21

Expert Comment

by:tfewster
ID: 8048883
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- Answered by newmang

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8096450
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
llcommand 6 100
AIX    Volume group Auto ON/OFF question 2 127
phantom space used up on RHEL?  (du shows no space used) 1 85
awk sed variable in file 3 98
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question