LT5 - launch script


#!/bin/bash

rm -r lt5/.civinput
touch lt5/.civinput

if [ x$1 = x ];then
LARG=" -f lt5/lastsave.sav.gz "
echo 'start' >> lt5/.civinput
else
LARG=" -f $1 "
fi

export LC_ALL=C
tail -f lt5/.civinput | 2.0.8-auth/bin/civserver -a -N -r .lt5 -p 5555 -s lt5 -P -g lt5/civgame.log $LARG 2>&1 \
| tee lt5/.civoutput | logger -t lt5