in reply to How to know the status of a command invoked by open function?
Update: I figured out why 141. It's (1<<7)|SIGPIPE. This is the shell letting the parent know how its kid exited.
# No shell involved, and the child died from SIGPIPE: $ perl -e'open(PS,"ls . |") or die "$!"; close PS or die $!; printf("% +04X\n", $?);' 000D # The shell relaying how its child died via its exit code: $ perl -e'open(PS,"ls . 2>/dev/null |") or die "$!"; close PS or die $ +!; printf("%04X\n", $?);' 8D00
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to know the status of a command invoked by open function?
by zhujian0805 (Sexton) on Aug 16, 2011 at 00:55 UTC | |
by ikegami (Patriarch) on Aug 16, 2011 at 01:01 UTC | |
by zhujian0805 (Sexton) on Aug 16, 2011 at 01:21 UTC | |
by ikegami (Patriarch) on Aug 16, 2011 at 01:42 UTC | |
by zhujian0805 (Sexton) on Aug 16, 2011 at 01:56 UTC | |
|