[CentOS] parsing out adjacent text

Thu Jun 5 17:26:09 UTC 2014
lee <lee at yun.yagibdah.de>

Tim Dunphy <bluethundr at gmail.com> writes:

> I'm very grateful. Ok so here is what I have so far of my script to get the
> number of apache requests to a given host:
> [...]
> So now my question is, is there any way to limit the size of the output log
> from within the script without having to use logrotate?

You could add a counter to the script and send the log off by email
after polling so many times, or on each poll, tail the file, omitting so
many lines as to remove the first entry.


-- 
Knowledge is volatile and fluid.  Software is power.