in reply to How do I pipe Apache to my script then to cronolog?

It seems to me that your program is doing exactly what you're telling it to. It reads a line of STDIN and prints it to STDOUT, then exits.

You might want to try something along these lines:
while (<STDIN>) { print STDOUT "The next line is: $_\n"; }
A minor note, I think your select and exit are superfluous. For that matter, so is the STDOUT in print STDOUT.

Also, explore Apache's Conditional Logging capability.

---
It's all fine and dandy until someone has to look at the code.

Replies are listed 'Best First'.
Re^2: How do I pipe Apache to my script then to cronolog?
by Anonymous Monk on Sep 25, 2006 at 21:43 UTC
    Thanks, I figured it was called each time, I didn't know it needed a loop. I looked around apache site and couldn't find examples and docs.

    Yeah, I was getting desperate and put in the select and exit.

    Excellent. I asked my local sysadmin guru and he said you couldn't do that with apache, so I figured I had to go with a filter. I just want to stop logging all those stupid favicon requests (nothing against favicons, but the site is a wiki and the browsers look in several locations, not just toplevel dir).

    Thanks for the info.