Copying the stdout and stderr, without losing exit status

Content and general development discussion, including quest scripts and server code. The Mana World is a project comprising the original tmwAthena server & a designated improved engine server based on evolHercules


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board. Its current use is for the continued development of the server and game it has always served: The Mana World.

Post Reply
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Copying the stdout and stderr, without losing exit status

Post by o11c »

Code: Select all

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