AW: [bf1942] Loging when Screen is activ
BMP
BMP at gmx.de
Wed Mar 12 11:52:58 EST 2003
Hello Paul,
i have change it to :
screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR | tee /home/BMP/log/bf.log 2>&1
and now i find the log ;-)
But the log is EMPTY there is nothing in it. I have connect to the
Server and disconnect but no entry.
p> Change this : screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR |
tee bf.log 2>>&1
p> To screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR
p> | tee /where/ever/you/want/bf.log 2>&1
p> Thomas Paulus
p> Pellndorf 1
p> 93155 Hemau
p> Tel.: 09491/640
p> Mobil: 0170/9354179
p> Fax: 09491/903071
p> mailto:thomaspaulus at web.de
p> mailto:info at paul-ist-schueler.de
p> web: http://www.paul-ist-schueler.de/
p> ICQ: 45639890
p> MSN: burning___man at hotmail.com
p> -----Ursprüngliche Nachricht-----
p> Von: BMP [mailto:BMP at gmx.de]
p> Gesendet: Mittwoch, 12. März 2003 16:57
p> An: Anton Jansen
p> Betreff: Re: [bf1942] Loging when Screen is activ
p> It didnt work ;-(
p> I dont cant find the bf.log on my Server.
p> #!/bin/sh
p> ### BEGIN INIT INFO
p> # Provides: Battlefield
p> # Default-Start: 3
p> # Description:
p> ### END INIT INFO
p> case "$1" in
p> 'start')
p> cd /
p> cd home
p> cd BMP
p> cd bf1942-lnxded-1.3beta
p> screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR | tee bf.log 2>&1
p> ;;
p> 'stop')
p> ;;
p> *)
p> echo "Usage: $0 { start | stop }"
p> ;;
p> esac
p> 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 ?
>>>
p> --
p> Mit freundlichen Grüssen
p> Marcus Berger
p> mailto:BMP at gmx.de
--
Mit freundlichen Grüssen
Marcus Berger
mailto:BMP at gmx.de
More information about the Bf1942
mailing list