in reply to Capture Exit Code Using Pipe & Tee
If your shell is bash, check out the PIPESTATUS shell parameter. For example, $command = "make -f <parameters> 2>&1 | tee -a build.log; let \\!PIPESTATUS"; might work, but I haven't tested it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capture Exit Code Using Pipe & Tee
by Anonymous Monk on Jan 31, 2007 at 23:10 UTC | |
by Anonymous Monk on Jul 08, 2010 at 20:46 UTC | |
by ikegami (Patriarch) on Jul 08, 2010 at 22:11 UTC | |
|
Re^2: Capture Exit Code Using Pipe & Tee
by meonkeys (Chaplain) on Mar 05, 2009 at 22:57 UTC |