What is the content of the perl script?

Mark 

> -----Original Message-----
> From: Marek Gimza [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 24, 2004 6:43 PM
> To: Tomcat Users List
> Subject: CGI-BIN - TOMCAT 4.1.29
> 
> Hi,
> 
> I would be grateful for some assistance ....
> 
> I have spent literrally 2 days trying to just a get a PERL or 
> even a shell 
> script to run from tomcat !!
> I have religously followed the steps to modify the web.xml 
> file, rename 
> the servlet-cgi.jar file and restart tomcat .
> When running the cgi script from my browser I get the 
> following errors in 
> the logfile:
> 
> 
> 2004-08-23 12:55:12 cgi: findCGI calc: name=hello.pl, 
> path=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl, 
> scriptname=/cgi-bin/hello.pl, cginame=/hello.pl
> 2004-08-23 12:55:12 cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 
> (compatible; MSIE 6.0; Windows NT 5.1), HTTP_ACCEPT_ENCODING=gzip, 
> deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us, 
> SERVER_NAME=holy.atl.arrisi.com, SERVER_SOFTWARE=TOMCAT, 
> HTTP_HOST=holy.atl.arrisi.com, GATEWAY_INTERFACE=CGI/1.1, 
> X_TOMCAT_SCRIPT_PATH=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/
> hello.pl, 
> REMOTE_ADDR=10.5.30.212, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, 
> REMOTE_HOST=lptp-mgimza.client.arrisi.com, QUERY_STRING=, 
> HTTP_CONNECTION=Keep-Alive, SERVER_PORT=9090, 
> HTTP_COOKIE=JSESSIONID=83357C8CE0FF70F6677A619137FBA3A7, 
> CONTENT_TYPE=, 
> CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin/hello.pl, HTTP_ACCEPT=*/*, 
> REMOTE_USER=, REMOTE_IDENT=}], 
> command=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl)
> 2004-08-23 12:55:12 cgi: runCGI (stderr):Can't open perl script 
> ""/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl"": No 
> such file or 
> directory
> 2004-08-23 12:55:12 cgi: runCGI: 1 lines received on stderr
> 2004-08-23 13:02:45 cgi: findCGI: path=/test.sh, 
> /usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
> 2004-08-23 13:02:45 cgi: findCGI: 
> currentLoc=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
> 2004-08-23 13:02:45 cgi: findCGI: 
> currentLoc=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
> 2004-08-23 13:02:45 cgi: findCGI: FOUND cgi at 
> /usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh
> 2004-08-23 13:02:45 cgi: findCGI calc: name=test.sh, 
> path=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh, 
> scriptname=/cgi-bin/test.sh, cginame=/test.sh
> 
> 2004-08-23 13:02:45 cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 
> (compatible; MSIE 6.0; Windows NT 5.1), HTTP_ACCEPT_ENCODING=gzip, 
> deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us, 
> SERVER_NAME=holy.atl.arrisi.com, SERVER_SOFTWARE=TOMCAT, 
> HTTP_HOST=holy.atl.arrisi.com, GATEWAY_INTERFACE=CGI/1.1, 
> X_TOMCAT_SCRIPT_PATH=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/
> test.sh, 
> REMOTE_ADDR=10.5.30.212, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, 
> REMOTE_HOST=lptp-mgimza.client.arrisi.com, QUERY_STRING=, 
> HTTP_CONNECTION=Keep-Alive, SERVER_PORT=9090, 
> HTTP_COOKIE=JSESSIONID=83357C8CE0FF70F6677A619137FBA3A7, 
> CONTENT_TYPE=, 
> CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin/test.sh, HTTP_ACCEPT=image/gif, 
> image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, 
> application/vnd.ms-powerpoint, application/msword, 
> application/x-shockwave-flash, */*, REMOTE_USER=, REMOTE_IDENT=}], 
> command=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh)
> 2004-08-23 13:02:45 cgi: runCGI (stderr):Can't open perl script 
> ""/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh"": No such file or 
> directory
> 2004-08-23 13:02:45 cgi: runCGI: 1 lines received on stderr
> 
> 
> I am sure that I have ommitted something ...
> 
> cd /usr/www/tomcat/bin
> startup.sh -debug start
> Using CATALINA_BASE:   /usr/www/tomcat
> Using CATALINA_HOME:   /usr/www/tomcat
> Using CATALINA_TMPDIR: /usr/www/tomcat/temp
> Using JAVA_HOME:       /usr/j2se
> 
> 
> Somehow tomcat cannot find the path to the cgi script  !! 
> 
> 
> Kind Regards,
> Marek Gimza 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to