On 6/23/06, jerry <[EMAIL PROTECTED]> wrote:
As i understand it after running a command running "echo $?" will
respond with 0 if the command executed properly and any other number if
there were an error.

I keep getting the response 130; obviously an error. Where can i find a
list  of error codes on linux?

Unfortunately there is no such thing.  Exit code 0 for success, non-0
for failure.  Some programs have documented exit codes other than 0
and 1.

Here is some information from the BASH man.page:

EXIT STATUS
      For the shell's purposes, a command which exits with a zero exit status
      has  succeeded.   An exit status of zero indicates success.  A non-zero
      exit status indicates failure.  When a command terminates  on  a  fatal
      signal N, bash uses the value of 128+N as the exit status.

This would indicate that your program terminated on a fatal signal 2,
since 128+2 = 130.

From "man 7 signal":

SIGINT        2       Term    Interrupt from keyboard

Interrupt from keyboard is what normally happens when you type <ctrl> C.

If this isn't what happened, and you wrote the program yourself, maybe
it doesn't have a proper exit() statement.  Or somebody else wrote it
without a proper exit() statement.

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

Reply via email to