Henrik Nordstrom schrieb:
> Marlon Anthony Abao wrote:
> > is there a way to log the access.log and cache.log to a pipe?
>
> Yes, make named pipes and disable log rotation. Then have your
> program listening on those named pipes.
>
> See man mknod.
Also remember that writing to a pipe or named pipe without reader
is blocking the writing process. That would be squid. So it is
essentially an evil idea, unless you know what you are doing.
The "tail -f" approach is burning a few cycles, on the other
hand, but on a 2+ CPU machine, there are usually cycles to
spare.
Ciao,
Dipl.-Ing. Jens-S. Vöckler (voeckler@rvs.uni-hannover.de)
Institute for Computer Networks and Distributed Systems
University of Hanover, Germany; +49 511 762 4726
Received on Sun Dec 12 1999 - 04:34:30 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:51 MST