The "Dtcl_Script ErrorScript" directive is not working the way I expected. From the documentation, and successful use of GlobalInitScrip, tChildInitScript,
ChildExitScript, I did not expect any error output to the client. I assumed
that ErrorScript would be evaluated in lieu of sending the normal error message
sent to the client. Indeed, I cannot find any evidence of ErrorScript being
evaluated.Here's the section from httpd.conf:
# Dtcl_Script GlobalInitScript "source /opt/www/forming/products/ginit.tcl"
Dtcl_Script ChildInitScript "source /opt/www/forming/products/init.tcl"
Dtcl_Script ChildExitScript "source /opt/www/forming/products/exit.tcl"
Dtcl_Script ErrorScript "source /opt/www/forming/products/error.tcl"
(The other directives are working as expected)
Here are the permissions of the scripts:
luke:/opt/www/forming/products # ll ginit.tcl init.tcl exit.tcl error.tcl
-rw-r--r-- 1 wwwrun root 25 Apr 17 03:33 error.tcl
-rw-r--r-- 1 wwwrun root 36 Apr 3 22:24 exit.tcl
-rw-r--r-- 1 wwwrun root 86 Apr 8 21:02 ginit.tcl
-rw-r--r-- 1 wwwrun root 6423 Apr 17 00:27 init.tcl
Am I simply misunderstanding the documentation relating to ErrorScript? My objective in using ErrorScript is twofold, 1.) to hide the Tcl stack trace from the user. 2.) to provide an alternate error message in a form so the user could it as an error report.
Thank-you
-- Luke Kale Myers
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
