On Feb 12, 2008 12:29 PM, Clanwarz &lt;<a href="mailto:clanwarz@gmail.com">clanwarz@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">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:<br></div><div class="gmail_quote"><div class="Ih2E3d">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="purple" lang="EN-US">
<div>

<div>



<p><font face="Arial" size="2"><span style="font-size: 10pt; 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></p></div></div></div></blockquote></div></div></blockquote><div><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 &#39;{ print $1 }&#39;` -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?<br>
</div></div><br><br><br>--jay<br><br><br>