PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

How to configure Tomcat to execute search.cgi as exe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to configure Tomcat to execute search.cgi as exe

    I have my Tomcat configured to run perl scripts in

    cgi-bin is mapped to \ROOT\WEB-INF\cgi

    Works great with perl scripts. Tomcat tries to treat search.cgi as a perl script. I renamed to search.exe, but the error indicated it was still treating as a perl script.

    Any ideas of how I configure Tomcat to treat .exe as windows executables?

    Thanks

  • #2
    Just as background for other people. CGI is an interface specification between web server software (like IIS, Apache & Tomcat) and external applications, like our CGI search.

    Some people assume that all CGI's are Perl scripts but this is incorrect. A CGI can be written in just about any scripting or programming language. In the case of our search.cgi, it is written in C++ and compiled to be a native executable file.

    We don't have any direct experience with Tomcat but according to the Tomcat documentation, there are several servlet init parameters which can be used to configure the behaviour of the CGI servlet. One of them is; executable - The of the executable to be used to run the script. Default is perl.

    So maybe it is a simple matter of removing this init setting?

    ----
    David

    Comment


    • #3
      I was aware of the setting, but appears if I remove, then the perl scripts I already have would not work.

      So, I decided to put in a workaround. I wrote a perl script that calls your program. It works, I will go with it.

      Thanks for your time and response

      Comment

      Working...
      X