Page 1 of 1

Copying the stdout and stderr, without losing exit status

Posted: 01 Jul 2011, 19:30
by o11c

Code: Select all

set -o pipefail
...
tmwa | tee stdout 2>&1 | tee stderr