[cod] log rotate script?

|PxR| TazAnimal tazanimal at rifleteam.com
Mon Jan 24 13:54:09 EST 2005


Thanks... but...
Lol... just so you guys know.... I stole the code....
I can't remember where, but it's not mine.... :-)

-----Original Message-----
From: Jay Vasallo [mailto:jayco1 at charter.net]
Sent: Monday, January 24, 2005 12:48 PM
To: cod at icculus.org
Subject: Re: [cod] log rotate script?


Nice script. I didn't even pay attention to the arguments. Real nice!



----- Original Message ----- 
From: "Luke" <luke at techfreak.org>
To: <cod at icculus.org>
Sent: Monday, January 24, 2005 12:30 PM
Subject: Re: [cod] log rotate script?


> it looks like it names the log to include the date as well as hour
> and minute.
> 
> Jay Vasallo said:
>> what happens when you start twice in a single day?
>>
>>
>>
>>
>> ----- Original Message -----
>> From: "Luke" <luke at techfreak.org>
>> To: <cod at icculus.org>
>> Sent: Monday, January 24, 2005 12:22 PM
>> Subject: RE: [cod] log rotate script?
>>
>>
>>> Nice. Thanks!
>>>
>>> |PxR| TazAnimal said:
>>>> Luke:
>>>>   I know you already got another answer to this, but here is how
>>>> I
>>>> do it in
>>>> my start script...
>>>>
>>>>         mv .callofduty/main/games_mp.log logs/Main_$(date
>>>> +%Y%m%d%H%M)games_mp.log
>>>>         mv .callofduty/pb/sv_viol.log logs/PBViol_Main_$(date
>>>> +%Y%m%d%H%M).log
>>>>         mv .callofduty/pb/sv_cheat.log logs/PBCheat_Main_$(date
>>>> +%Y%m%d%H%M).log
>>>>         cd .callofduty/pb/svlogs
>>>>         for i in $( ls *.log );
>>>>         do
>>>>             src=$i
>>>>             tgt=../../../logs/PBLog_Main_$(date +%Y%m%d%H%M)_$i
>>>>             mv $src $tgt
>>>>         done
>>>>
>>>> Then, I have all my logs in a logs directory. :-)
>>>>
>>>> Taz!
>>>>
>>>> -----Original Message-----
>>>> From: Luke [mailto:luke at techfreak.org]
>>>> Sent: Monday, January 24, 2005 6:13 AM
>>>> To: cod at icculus.org
>>>> Subject: [cod] log rotate script?
>>>>
>>>>
>>>> Hey all,
>>>>
>>>> Does anyone have a log rotate script I can use? What Im looking
>>>> for
>>>> is a script that would archive the current server logs when I run
>>>> my
>>>> server restart script. Possibly archive by date.....
>>>>
>>>> I could make any adjustments needed if nobody has exactly that.
>>>>
>>>> Thanks!
>>>>
>>>>
>>>> --
>>>> "Ok, I admit it. I was just a front-man for the real fathers of
>>>> Linux,
>>>> the Tooth Fairy and Santa Claus."
>>>>
>>>> --- Linus Torvalds
>>>>
>>>
>>>
>>> --
>>> "Ok, I admit it. I was just a front-man for the real fathers of
>>> Linux,
>>> the Tooth Fairy and Santa Claus."
>>>
>>> --- Linus Torvalds
>>>
>>
> 
> 
> -- 
> "Ok, I admit it. I was just a front-man for the real fathers of Linux,
> the Tooth Fairy and Santa Claus."
> 
> --- Linus Torvalds
>




More information about the Cod mailing list