21 Mar 11, 06:19AM
Uhm .. what's that error?
Regarding log-output .. well, when you run the game, you get output - that's what I meant - the console log. You might enjoy this snippet (place in /usr/local/bin/assaultcube if you like) - make a "~/.autologs"-directory first though.
OFC you'll need to adapt the P2G setting to match your installation, possibly also the call used to establish NOW - maybe change the %b to %m .. anyway, after that just run AC via that command and find your logs in the ~/.autologs-directory.
For a once-only run - use something like this:
[SELECT ALL] Code:
XIO: fatal IO error 22 (Invalid argument) on X server ":0.0"
after 40 requests (40 known processed) with 0 events remaining.
Regarding log-output .. well, when you run the game, you get output - that's what I meant - the console log. You might enjoy this snippet (place in /usr/local/bin/assaultcube if you like) - make a "~/.autologs"-directory first though.
[SELECT ALL] Code:
#!/bin/bash
P2G=/opt/games/AC/1.1.0.4
NOW=`date +"%Y%b%d_%H:%M:%S"`
cd $P2G
./assaultcube.sh $*> ~/.autologs/AC_$NOW.log 2>&1
For a once-only run - use something like this:
[SELECT ALL] Code:
./assaultcube.sh > ac.log 2>&1