For the current version of the CGI script the CGI scripts need to be in the WEB-INF/cgi directory. They are then available via the /cgi-bin/ path. Also, the webapp must be deployed in an expanded state.
ie: if you deploy myApp.war to the webapp directory containing WEB-INF/cgi/myScript.cgi then you would access it with http://tomcathost/myApp/cgi-bin/myScript.cgi There is a bug in the current version that wraps the Perl command and parameters in double quotes. This works fine with Windows but not much else (sorry - this was my fault). The various patches make the following changes: - the double quote bug is fixed - use of Perl is no longer mandatory, the name of the .exe can be configured - you can use extension mapping and place cgi scripts anywhere you would place a jsp file - other minor stuff that escapes me (look in the archive if you really want to know) Of course, if you want these features you'll need to build from CVS or wait for the next release. Mark -----Original Message----- From: Martin Dengler [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 5:20 PM To: Tomcat Users List Subject: Re: CGI servlet in tomcat I've contacted the OP off-list to see if I can help as well. On Fri, 2004-01-09 at 17:38, Tim Funk wrote: > See the tomcat-dev and tomcat-user archives. There were some recent patches > to CGI Servlet and some discussions about it. I don't rember the specifics. > (Since I don't use cgi) > > Worst case scenario is you'll need to build from CVS or wait for the next > release depending on what was in those discussions. > > -Tim > > [EMAIL PROTECTED] wrote: > > > Tim, > > > > Thanks. I followed your instructions but I get the error "CGI script not > > found or not specified." > > > > Any idea on what I should do? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
