help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does code 123 mean?... (Shell command failed with code 123 and


From: Tim X
Subject: Re: What does code 123 mean?... (Shell command failed with code 123 and no output)
Date: Sat, 07 Jun 2008 09:45:50 +1000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Don Saklad <dsaklad@gnu.org> writes:

> a.
> What does code 123 mean?... in
>
>      (Shell command failed with code 123 and no output)
>

This is usually the exit status from the shell command you are
running. Sometimes, programs that run commands will do a logical AND of
the return value from the command and some other value, which can be
used to indicate errors in executing the command rather than errors in
the comamnd itself and you will need to do a bit shift to get the actual
error code. 



>
> b.
> Where is there a list of codes and what the codes mean?...
>

There isn't any standard list. There are some conventions on the use of
error codes, but many programs don't follow them. The best place to
check is probably the man page or other documentation for the command
you are running. Also, check the definition of shell-command - you can
call it with a 3rd argument that specifies a buffer for errors to be
sent to (i.e. shell commands stderr). Calling it with this set may give
you some clue as to what is going on. 

HTH

Tim

-- 
tcross (at) rapttech dot com dot au


reply via email to

[Prev in Thread] Current Thread [Next in Thread]