On Wed, 11 Feb 2004 00:04:49 +0100
S�ren Neigaard <[EMAIL PROTECTED]> wrote:

> I have an application where I pipe its stout into a file, but the file
> grows huge over time. So I was thinking if there is a tool I can pipe
> my

Does the application output grow over a period of time? Are you running
it all the time or periodically, over say a month or so? If so, you
could just add the file to the list of files in the logrotate
configuration (/etc/logrotate).

Logrotate essentially runs once per week (typically) and gzips the log,
creating a new zero-byte log. Other gzipped log files are moved out of
the way, or (ultimately) deleted.

Are there items which you could search for in the file - such as time or
date stamps, and hten use selection tools to filter those lines out? 

Ultimately, you could just pipe the stdout of the application through
gzip, and compress its output:

app - | gzip - >output.gz

for instance.


-- 
------------------------------------------------------------------------
David E. Fox                              Thanks for letting me
[EMAIL PROTECTED]                            change magnetic patterns
[EMAIL PROTECTED]               on your hard disk.
-----------------------------------------------------------------------

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to