From: Christian Heller Date: Tue, 18 Mar 2014 04:47:11 +0000 (+0100) Subject: Startup script pipes everything to a log file now. X-Git-Tag: tce~818 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/add_task?a=commitdiff_plain;h=8fda7f4bd21cfd663ded40522f533896672fab97;p=plomrogue Startup script pipes everything to a log file now. --- diff --git a/TODO b/TODO index db62941..8090274 100644 --- a/TODO +++ b/TODO @@ -9,8 +9,6 @@ BOTH SERVER/CLIENT: - make config files format more readable / self-explanatory -- in startup script, pipe server output to log file instead of stdout - SERVER: - implement field of view / line of sight and obstacles for those on the map diff --git a/roguelike b/roguelike index 3ea498d..8ca2871 100755 --- a/roguelike +++ b/roguelike @@ -3,8 +3,8 @@ # Abort the script on error. set -e -# Use the shell script's arguments to the server's arguments. -./roguelike-server "$@" & +# Use shell script's arguments for server and pipe server output to log file. +./roguelike-server "$@" > log 2>&1 & # Give server some time to start up and exit on error. sleep 0.01