in reply to Returning status to parent from pipe
If you're using the bash shell something like this might work:
if (fork()){ } else { exec 'com1 | com2; exit $PIPESTATUS[0]'; }
You can read more about this in the bash manual.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Returning status to parent from pipe
by morrin (Acolyte) on Aug 25, 2010 at 21:11 UTC | |
by ikegami (Patriarch) on Aug 25, 2010 at 23:01 UTC |