httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Turner <>
Subject Re: Tracking Down an Error
Date Sat, 03 Aug 2002 20:43:11 GMT
On Sat, 03 Aug 2002 12:26:24 -0600, Cartoon Factory wrote:

>From: Andy Cutright []

>>if you think it's the perl script causing the problem, does the perl
>>script log?
>Hi Andy:
>Thanks for the reply. No, the scripts I am running to not log. Is there a
>way to make perl log itself? (And if so, how?)

This from a non-serious hacker:  At the start of each script, add
something similar to;

	print "$script-name begin $date $time" >> /var/log/apache/cgiperl.log

Then at each exit point;

	print "$script-name end $date $time" >> /var/log/apache/cgiperl.log

Consider these snippets to be pseudo-code, as I can't do Perl without
the book in front of me. :)

After killing your next runaway, a study of the log should hi-lite the
culprit.  I think that this ordering will make it easy to extract info.
It ain't so much what you don't know that gets you in trouble---
it's what you do know that ain't so.--unk

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message