The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
exit codes from rexec? diego_sapphire UNIX for Dummies Questions & Answers 4 05-04-2009 12:44 PM
Exit Codes cmschube Shell Programming and Scripting 1 04-04-2008 12:34 PM
Catching all Exit Codes Sivaswami J Shell Programming and Scripting 3 02-16-2006 07:13 PM
Where can I find a list of exit codes? (Exit code 64) jkuchar747 UNIX for Dummies Questions & Answers 3 12-07-2004 06:08 PM
exit codes donna carter High Level Programming 3 05-31-2001 10:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-15-2006
miltony miltony is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 10
Exit codes in Korn shell

Hi,

Can anyone give me the explanation for the exit codes 1 and 127 returned from Korn shell.

Thanks in advance.
  #2 (permalink)  
Old 03-15-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,958
127 - exit status returned when command executed is not found
1 - there could be many reasons like
word expansion, redirection return value from command executed over the interpreter
  #3 (permalink)  
Old 03-15-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,794
Actually assuming the codes mean something when you run somebody else's code can be a stretch.

The defacto standard for these things comes from BSD's sysexits.h

See: http://www.hmug.org/man/3/sysexits.php for an explanation of "standard" exit codes, proposed to be standard anyway.

The Linux Documentation Project has an unofficial guide -
http://www.tldp.org/LDP/abs/html/unofficialst.html
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0