* What does code 123 mean?... (Shell command failed with code 123 and no output)
@ 2008-06-06 6:34 Don Saklad
2008-06-06 10:33 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Don Saklad @ 2008-06-06 6:34 UTC (permalink / raw)
To: help-gnu-emacs, dsaklad
a.
What does code 123 mean?... in
(Shell command failed with code 123 and no output)
b.
Where is there a list of codes and what the codes mean?...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What does code 123 mean?... (Shell command failed with code 123 and no output)
[not found] <mailman.12730.1212734180.18990.help-gnu-emacs@gnu.org>
@ 2008-06-06 7:30 ` Xah
2008-06-06 23:45 ` Tim X
1 sibling, 0 replies; 7+ messages in thread
From: Xah @ 2008-06-06 7:30 UTC (permalink / raw)
To: help-gnu-emacs
Don Saklad wrote:
«What does code 123 mean?... in (Shell command failed with code 123
and no output)»
possibly the exit code of unix shell commands...
Here's a excerpt from “perldoc -f system”
The return value is the exit status of the program as returned by the
"wait" call. To get the actual exit value, shift right by eight (see
below). See also "exec". This is *not* what you want to use to
capture the output from a command, for that you should use merely
backticks or "qx//", as described in "`STRING`" in perlop. Return
value of -1 indicates a failure to start the program or an error of
the wait(2) system call (inspect $! for the reason).
So you might also see:
man 2 wait
man 3 exit
http://en.wikipedia.org/wiki/Exit_status#Unix
Xah
xah@xahlee.org
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What does code 123 mean?... (Shell command failed with code 123 and no output)
2008-06-06 6:34 Don Saklad
@ 2008-06-06 10:33 ` Eli Zaretskii
0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2008-06-06 10:33 UTC (permalink / raw)
To: help-gnu-emacs
Which command was that? The interpretation of the code depends on the
command which returned that code.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What does code 123 mean?... (Shell command failed with code 123 and no output)
[not found] <mailman.12730.1212734180.18990.help-gnu-emacs@gnu.org>
2008-06-06 7:30 ` Xah
@ 2008-06-06 23:45 ` Tim X
1 sibling, 0 replies; 7+ messages in thread
From: Tim X @ 2008-06-06 23:45 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What does code 123 mean?... (Shell command failed with code 123 and no output)
@ 2008-06-07 4:16 Don Saklad
0 siblings, 0 replies; 7+ messages in thread
From: Don Saklad @ 2008-06-07 4:16 UTC (permalink / raw)
To: help-gnu-emacs, dsaklad
> Which command was that? The interpretation of the code
> depends on the command which returned that code.
Around the web where are there examples of commands that could return
code 123 ?...
In this particular case it happened to be...
find -type f -print0 | xargs -0 grep -i strategylab
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
a.
What does code 123 mean?... in
(Shell command failed with code 123 and no output)
b.
Where is there a list of codes and what the codes mean?...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What does code 123 mean?... (Shell command failed with code 123 and no output)
[not found] <mailman.12830.1212812278.18990.help-gnu-emacs@gnu.org>
@ 2008-06-07 9:04 ` Johan Bockgård
2008-06-07 10:10 ` Peter Dyballa
0 siblings, 1 reply; 7+ messages in thread
From: Johan Bockgård @ 2008-06-07 9:04 UTC (permalink / raw)
To: help-gnu-emacs
Don Saklad <dsaklad@gnu.org> writes:
> In this particular case it happened to be...
> find -type f -print0 | xargs -0 grep -i strategylab
>
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> a.
> What does code 123 mean?... in
>
> (Shell command failed with code 123 and no output)
EXIT STATUS
xargs exits with the following status:
0 if it succeeds
123 if any invocation of the command exited with status 1-125
124 if the command exited with status 255
125 if the command is killed by a signal
126 if the command cannot be run
127 if the command is not found
1 if some other error occurred.
Exit codes greater than 128 are used by the shell to indicate
that a
program died due to a fatal signal.
> b.
> Where is there a list of codes and what the codes mean?...
man xargs
--
Johan Bockgård
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What does code 123 mean?... (Shell command failed with code 123 and no output)
2008-06-07 9:04 ` Johan Bockgård
@ 2008-06-07 10:10 ` Peter Dyballa
0 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2008-06-07 10:10 UTC (permalink / raw)
To: Johan Bockgård; +Cc: help-gnu-emacs
Am 07.06.2008 um 11:04 schrieb Johan Bockgård:
> EXIT STATUS
> xargs exits with the following status:
> 0 if it succeeds
> 123 if any invocation of the command exited with status 1-125
> 124 if the command exited with status 255
> 125 if the command is killed by a signal
> 126 if the command cannot be run
> 127 if the command is not found
> 1 if some other error occurred.
>
> Exit codes greater than 128 are used by the shell to
> indicate
> that a
> program died due to a fatal signal.
You have a complicated xargs! Look, mine from FreeBSD, only offers:
DIAGNOSTICS
The xargs utility exits with a value of 0 if no error occurs.
If utility
cannot be found, xargs exits with a value of 127, otherwise if
utility
cannot be executed, xargs exits with a value of 126. If any
other error
occurs, xargs exits with a value of 1.
--
Greetings
Pete
Engineer: a mechanism for converting caffeine into designs
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-06-07 10:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-07 4:16 What does code 123 mean?... (Shell command failed with code 123 and no output) Don Saklad
[not found] <mailman.12830.1212812278.18990.help-gnu-emacs@gnu.org>
2008-06-07 9:04 ` Johan Bockgård
2008-06-07 10:10 ` Peter Dyballa
[not found] <mailman.12730.1212734180.18990.help-gnu-emacs@gnu.org>
2008-06-06 7:30 ` Xah
2008-06-06 23:45 ` Tim X
-- strict thread matches above, loose matches on Subject: below --
2008-06-06 6:34 Don Saklad
2008-06-06 10:33 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.