AW: [bf1942] Loging when Screen is activ

paul tp-international at t-online.de
Wed Mar 12 11:20:57 EST 2003


Hi!

Change this : screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR |
tee bf.log 2>&1
To                 screen -A -m -d -S BF ./bf1942_lnxded +game CollectionRtR
| tee /where/ever/you/want/bf.log 2>&1
Thomas Paulus
Pellndorf 1
93155 Hemau

Tel.: 09491/640
Mobil: 0170/9354179
Fax: 09491/903071
mailto:thomaspaulus at web.de
mailto:info at paul-ist-schueler.de

web: http://www.paul-ist-schueler.de/

ICQ: 45639890
MSN: burning___man at hotmail.com

-----Ursprüngliche Nachricht-----
Von: BMP [mailto:BMP at gmx.de]
Gesendet: Mittwoch, 12. März 2003 16:57
An: Anton Jansen
Betreff: Re: [bf1942] Loging when Screen is activ

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