-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 André,
On 6/20/14, 6:19 PM, André Warnier wrote: > Christopher Schultz wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >> >> Rahul, >> >> On 6/20/14, 3:10 PM, Rahul R wrote: >>> This is from my conf/web.xml >>> >>> <servlet> <servlet-name>cgi</servlet-name> >>> >>> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> >>> >>> >> >>> <init-param> >>> <param-name>debug</param-name> <param-value>0</param-value> >>> </init-param> <init-param> >>> <param-name>cgiPathPrefix</param-name> >>> <param-value>WEB-INF/cgi</param-value> </init-param> >>> <init-param> <param-name>passShellEnvironment</param-name> >>> <param-value>true</param-value> </init-param> <init-param> >>> <param-name>executable</param-name> >>> <param-value>perl</param-value> </init-param> >>> >>> <load-on-startup>5</load-on-startup> </servlet> >>> >>> >>> <servlet-mapping> <servlet-name>cgi</servlet-name> >>> <url-pattern>/cgi-bin/*</url-pattern> </servlet-mapping> >>> >>> >>> Please let me know what do you mean by privileged usage. >> >> https://tomcat.apache.org/tomcat-7.0-doc/cgi-howto.html >> >> Since you have mapped the CGIServlet to /cgi-bin, then you will >> want to have your HTML file (located in the webapp root) to >> reference "/cgi-bin/read_toggle.cgi" as the action. >> >> Note that the URL reference is mapped from the URL space >> (/cgi-bin/read_toggle.cgi) into the webapp's resource space >> (WEB-INF/cgi/read_toggle.cgi) which is why the paths don't appear >> to match. >> >> Finally, if the Perl script isn't that complicated, you should >> consider re-writing it in Java since you are using a Java >> application server. It will be much easier to deal with >> everything that way. >> > > Who said that the cgi-bin script was perl ? The OP. Look up in the configuration: the "executable" is set to "perl". I suppose he could be using a tcl/tk binary re-named to "perl" just to have a laugh, but probably not. > (not saying that it isn't, but nobody said it was either). As it > stands, whatever it is, it is being run (at first) by perl. But if > perl notice another interpreter in the shebang line, it will > happily cede its turn. Fair enough. I've seen some stupid things in my time, but having Perl hand-off to some other binary just seems wasteful. > Anyway, it raises the fundamental question of why go though all > the trouble to run a (possibly perl) cgi-bin script within Tomcat > ? +1 - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTpOz4AAoJEBzwKT+lPKRY7HUP/0ifaL1kLQA7Ey4nVjIGRfMJ DP5JBkTpoampQIJbqnf8DwNZmm6chRPK75RK5nioPghac3uXUuL6UgW6BCrfccBa tcprd7jK5dwQPi0vNsgTDaypPtIw30mt1z3TieHJ2qFlBPU+Fa4SGl8KHGi/GsXA Ti7yt+2wz1a1BkWrd1u39qZeC/x0bHkPr4pd7OONLpaxiqWMoTnzpasPFQMu3lt2 Rjqt4PhMy3khu5UirW0CUb/sMR8d74sflZ80bhf/xe2id3UiEsMWiIU9HrG3s37K bN1NtUFODFKbM2v7ZD6ZXkndqYMXfTp8cyopOjwZB3XkDF+tN9DHyCf+wCLFYBgj VMkkv+XPssy1RMOaifQdhLsrdd8TwMfqUWC+QTiuEYgmQ8CoRzm5j7oQKZE3WfjX 8xj0xEmcCwhfXOYo/zeXuqBniMyQPFqhB5y7rj9ChTBGXjm1GsWDTTj4YSRjx/As DVqVcn/G/ZvB6MllcXu7xGHLul36SnP5pJs2DpMzqnmUoHCkTnnPaYqv81TMKWGj CF63o+kUrhKZBYG8FY5nSe/8uBg9Rkg6iCXu+nfUCFe7LgoFIcz5R7WsyJ4kOF1Q 4JgwdlMoRFh2pYi6egyQT0kDKXc6yUTF/q0chTxCNsW+YA3sPpBetpQTnOtsTI1O Wl9WfLRZsYTZD9Mg3LjP =8uKG -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org