I been looking for a solution for this all day and just wanted to report it. I have a sh script that runs my server. The problem is that when the server is in a screen the stderr will not log it makes a file but writes nothing inside this file. But when I take out the screen session and let it run in console of my Linux server it writes to the file. So my question is this a bug or can it be a user error?
Description
Description
Details
Details
- Severity
- Tweak
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Linux x64
- Operating System Version
- Ubuntu 14.04.4 LTS
- Category
- Server
Steps To Reproduce
Sh Script With Screen and doesn't write to log
SCREENNAME=arma3
PORT=2302
PROFILENAME=a3wasteland
CONFIG=config.cfg
SERVERDIR=/home/steam/arma3/wasteland/
SERVERMOD=extDB2
LOGFILE=/home/steam/arma3/wasteland/logs/log.txt
cd $SERVERDIR
screen -AmS $SCREENNAME ./arma3server -name=$PROFILENAME -port=$PORT -config=$CONFIG >>$LOGFILE 2>&1
Additional Information
Sh Script With out Screen and writes to log
#SCREENNAME=arma3
PORT=2302
PROFILENAME=a3wasteland
CONFIG=config.cfg
SERVERDIR=/home/steam/arma3/wasteland/
SERVERMOD=extDB2
LOGFILE=/home/steam/arma3/wasteland/logs/log.txt
cd $SERVERDIR
./arma3server -name=$PROFILENAME -port=$PORT -config=$CONFIG >>$LOGFILE 2>&1