[users@httpd] piped log not getting any stdin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm trying to pipe my Apache 2.0.54 logs to a script, but never seem
to get any logs sent through the pipe.

Apache starts my script (actually a python program) which runs fine
until it tries to read a log from stdin.  At that point the script
hangs and never gets any input.

My script works correctly for other sources, ie: "cat access.log |
script.py" works correctly.

Also, I tried just piping apache logs to cat, ie:

CustomLog "|/bin/cat >> /var/log/apache2/test.log" common

I get this is my error.log:

piped log program ' /bin/cat >> /var/log/apache2/test.log' failed unexpectedly
/bin/cat: >>: No such file or directory


Quite a few people in the past seem to have trouble having their
scripts get any input from apache2, but I couldn't find any solutions
in the lists....  Any ideas?

thanks
-Tim

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux