[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: |
Xah |
Subject: |
Re: What does code 123 mean?... (Shell command failed with code 123 and no output) |
Date: |
Fri, 6 Jun 2008 00:30:48 -0700 (PDT) |
User-agent: |
G2/1.0 |
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/
☄
- Re: What does code 123 mean?... (Shell command failed with code 123 and no output),
Xah <=