|
Posted by Steve on 11/29/06 04:13
On Tue, 28 Nov 2006 20:11:54 -0800, veg_all wrote:
> I am looking for a simple way to keep my log files from growing too
> large. Basically I would want something that truncates the off first 25
> kb of a 100kb log file. I could do something with reading in the file
> twice, first to determine number of lines. Then a second time to write
> a copy of the reduced log file. Any simpler workarounds?
If you're using a *nix os, then logrotate's probably your best bet.
Navigation:
[Reply to this message]
|