DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18273>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18273 Need complete environment in CGI Summary: Need complete environment in CGI Product: Tomcat 4 Version: 4.1.18 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Enhancement Priority: Other Component: Servlets:CGI AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CGIs are only called with certain environment variables set (meta-variables per spec) like QUERY_STRING, HTTP_* when they are executed. However, *none* of the system specific environment variables are passed on. There are two ways to alleviate it. The workaround means to call a wrapper CGI that sets up the system environment, and passes it to the real CGI. The "right TM" solution is IMHO that tomcat provides the system environment itself. My CGIs depend on some system variables like PATH to locate other exes/dlls. As it is nearly impossible to obtain the correct PATH value if is has not been set up in the first place, I decided to enhance the CGIServlet to pass on the system environment to CGIs, too. See the attached patch for a proposed implementation. This patch is created against tomcat 4.1.18 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]