<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">



<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</HEAD>
<BODY lang=EN-US link=blue vlink=blue>
<DIV>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks I&#8217;ll give it a try.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Don<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Clanwarz
[mailto:clanwarz@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, February 12, 2008
10:52 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">cod@icculus.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [cod] log size</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Feb 12, 2008 12:29 PM, Clanwarz &lt;<a
href="mailto:clanwarz@gmail.com">clanwarz@gmail.com</a>&gt; wrote:<o:p></o:p></span></font></p>

<div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Feb 12, 2008 12:23 PM, Donald Stephens &lt;<a
href="mailto:donald.stephens@activant.com" target="_blank">donald.stephens@activant.com</a>&gt;
wrote:<o:p></o:p></span></font></p>

</div>

<div>

<div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div link=blue vlink=purple>

<div>

<div>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
need to figure out a way to automate the deletion and recreation of the game
log on my cod4 servers. It crashes the server when it reaches 2 gig in size.
How are you guys handling this</span></font><o:p></o:p></p>

</div>

</div>

</div>

</blockquote>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
This cron will execute Monday 7 a.m., once a week. So if the file is 1 gig in
size, it will flush the logfile.<br>
<br>
00 7 * * 1&nbsp; if&nbsp; [ `du -b /path/to/games.log | awk '{ print $1 }'` -ge
1073741824 ]; then echo &quot;&quot; &gt; /path/to/games.log ; fi<br>
<br>
Not sure if it will cause the server to crash flushing a games.log file when
the server is writing to it?<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
--jay<br>
<br>
<o:p></o:p></span></font></p>

</div>

</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Notice: This transmission is for the sole use of the intended recipient(s) and may contain information that is confidential and/or privileged.&nbsp; If you are not the intended recipient, please delete this transmission and any attachments and notify the sender by return email immediately.&nbsp; Any unauthorized review, use, disclosure or distribution is prohibited.</DIV></BODY></HTML>