[ Date Index ][
Thread Index ]
[ <= Previous by date /
[ Next by date /
thread => ]
Re: [LUG] apache perl cgi question
On Wed, 17 Nov 2004 08:12:04 -0000, "Darke, Clive"
Broken Pipe is raised when a process writing to a pipe 'looses' the reader
process. Most likely one of the sort's is writing more data than head
wants. For example, if head wants 10 lines and then finishes, what does
sort do with the rest?
With a bit more work you might be able to do away with the sort as well,
although that might not be worth the effort.
Given that the page is not *that* dynamic, I think I will re-write as
shell script+awk and put it in /etc/cron.hourly to regenerate a static
version of page.
The eventual aim anyway was to compare the ratio of 'count' to 'first'
and automatically add entries to my iptables firewall to drop traffic
from people sending over 100 queries an hour in general, and
especially those sending one query per second!
Distributed Proofreaders: http://www.pgdp.net
The NTP server pool http://www.ntp.pool.org
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.