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: Sun Feb 20, 2011 10:09 pm
Location: ^ ^

Copying the stdout and stderr, without losing exit status

Post by o11c » Fri Jul 01, 2011 8:30 pm

Code: Select all

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