Solved

error codes meaning on AIX

Posted on 2002-05-28
8
5,386 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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
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

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!

Question has a verified solution.

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

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 …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

728 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