I've got a Perl CGI script that runs fine 99% of the time. Occasionally we'll get this error in the web browser:<div><div><br></div><div>Status: 500 Content-type: text/html</div><div>Software error:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
Undefined subroutine &main::MySubroutine called at MyCGI.cgi line 123 </div></div><div><br></div><div>The subroutine "MySubroutine" is defined in an included Perl module, and just two lines before the script used another subroutine from the same perl module.</div>
<div><br></div><div>I'm asking my server admin to send me the Apache log files (it's a remote server I don't have access to) - is there anything else to look at?</div><div><br></div><div>This is either a RedHat or Solaris system - if we suspect RAM or CPU load may be the root cause, what additional logging tools can I use to monitor Apache and/or the Perl CGIs themselves? If it's Solaris 10, I might have him use some of the DTrace facilities, but unsure about similar tracing on RedHat.</div>
<div><br></div><div>Thanks,</div><div>DanL</div><br>-- <br>***************** ************* *********** ******* ***** *** **<br>"Quis custodiet ipsos custodes?"<br> (Who can watch the watchmen?)<br> -- from the Satires of Juvenal<br>
"I do not fear computers, I fear the lack of them."<br> -- Isaac Asimov (Author)<br>** *** ***** ******* *********** ************* *****************<br>
</div>