Copying the stdout and stderr, without losing exit status

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
o11c
Knight
Knight
Posts: 2262
Joined: 20 Feb 2011, 22:09
Location: ^ ^

Copying the stdout and stderr, without losing exit status

Post by o11c » 01 Jul 2011, 20:30

Code: Select all

set -o pipefail
...
tmwa | tee stdout 2>&1 | tee stderr
Former programmer for the TMWA server.
Post Reply