[cod] Automated gamelog rotate

Tyson twisted at twistedgamingservice.com
Wed Mar 26 00:36:20 EDT 2008


Peter

Please turn the read request off its annoying to get the popup with every message.

Thanks

Tyson
Twisted Gaming Service
http://www.twistedgamingservice.com



-----Original Message-----
From: Peter Wirdemo [mailto:drnuke at wirdemo.se] 
Sent: Tuesday, March 25, 2008 5:26 PM
To: cod at icculus.org
Subject: Re: [cod] Automated gamelog rotate

Hello!

I dont know how the server has implemented the log, but are you sure 
that the logs are written to the new file after you have run your 
script. The file could still be open by the server, i.e the server will 
still be writing, but to the new name.

To be sure, copy games_mp.log to games_mp_$data.log, then truncate 
games_mp.log.

/Peter



Koral wrote:
> Hi
> Maybe this script will help you
> #!/bin/bash
>
> data=`date +%Y-%m-%d`
> mv /home/cod24/.callofduty4/main/games_mp.log 
> /home/cod24/.callofduty4/main/games_mp_$data.log
>
> next add to corntab 01 0 * * *    USER    /path  to script
>
>
>
> Hi,
> Is it possible to set up an automate game log rotating?
> For example: single log file on every day.
>
> games_mp_[date].log
>
> How you change log file names? Only by by hand, making changes in cfg 
> file?
>

---
To unsubscribe, send a blank email to cod-unsubscribe at icculus.org
Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?38






More information about the Cod mailing list