[bf1942] Loging when Screen is activ
BMP
BMP at gmx.de
Wed Mar 12 10:56:53 EST 2003
It didnt work ;-(
I dont cant find the bf.log on my Server.
#!/bin/sh
### BEGIN INIT INFO
# Provides: Battlefield
# Default-Start: 3
# Description:
### END INIT INFO
case "$1" in
'start')
cd /
cd home
cd BMP
cd bf1942-lnxded-1.3beta
screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR | tee bf.log 2>&1
;;
'stop')
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
AJ> Hi,
AJ> You should redirect the output of the BF process to a file
AJ> For example:
AJ> screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR | tee bf.log
2>>&1
AJ> Will redirect the output of the bf server process to the console of the
AJ> screen session and save it in the file bf.log. The 2>&1 will combine the
AJ> error and stdout stream in one stream, so you can see how they interact.
AJ> After that you can use your normal script/programming skills to read and
AJ> filter the log file for the information you want to have ... (off course
AJ> you could also connect it to the pipe instead ...)
AJ> Kind regards,
AJ> Anton Jansen
AJ> On Wed, 12 Mar 2003, Marcus PRIVAT wrote:
>> I startet my BF Server whis SCREEN
>>
>> screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR
>>
>> I now that i can go whis SCREEN -r BF back to the Console but i didnt
>> wont it.
>> I wont to LOG the Messages (i only need Connections and all the player
>> have type in) to a File.
>> Anyone now hove ?
>>
--
Mit freundlichen Grüssen
Marcus Berger
mailto:BMP at gmx.de
More information about the Bf1942
mailing list