#!/bin/sh
# this is just an example
#tail -f /var/log/httpd/error_log
tail -f /var/log/httpd/ssl_error_log | sed 's/^.\+0.41\]\|\, referer.\
++\.cgi\|\?rm=\w\+//g'
# or just
# tail -f /var/log/httpd/error_log
(you know how to set perms on that? chmod 0700, just you everything, everyone else nothing)
Open a terminal and # debughttp
forget the CGI::Carp 'fatalsToBrowser' crap.. get rid of all that, get rid of the open(STDERR, '>>' .. all that.
Make sure you have the right path to your httpd error log
call the script from your browser and enjoy the wonder that is POSIX. |