On 2009-12-18 , at 21:02 , Scott Haneda wrote:
> 
> I run a script that does this
> tail -f -n0 /path/to/log.log >> /path/to/log/running_log
> The problem is, the log.log grows, it will get chopped in half by the app at 
> a point in size I define, I set mine pretty high.  I want to get those log 
> lines in MySql, parsing 100MB files is not fun.

what happens if you do the following while your 'tail' is running

 gsed -i '1,100000d' log.log

assumes that there are 100,000 lines+ in log.log - assumes that you have 
processed the first 100,000 lines too.

  -i "edit the file in place
  '1,100000d' delete lines 1 through 100,000

8)
----------------------------------
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to