ashwani has asked for the wisdom of the Perl Monks concerning the following question:

I have a script.cgi that is converted to .exe using PDK.
From html page I call script.exe
and would like to be able to run this script.exe in the background on my hosted site.

How can I make this happen?

Ashwani

Replies are listed 'Best First'.
Re: hot to run script.exe on hosted site?
by Corion (Patriarch) on Aug 02, 2006 at 07:31 UTC

    This sounds to me like a HTML / Webserver configuration question. But you don't even tell us what webserver you are using, what you've done so far, and how it doesn't work out. So how are we expected to help you?

    Please read How (Not) To Ask A Question. Then check if your problem relates to the PDK or if any .exe file will fail in the same way. If that is so, the problem is with your webserver and/or method and we cannot help you there.

      Here is the info about the server where it is running
      Platform - Windows Server: Microsoft-IIS/6.0
      it is giving error
      The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
      i hope it may provide you some more info
      let me know if you need more detail
      ashwani

        Have you looked into the server error log? What does it say there?

        Have you tried to launch a different program than your program there?

        How are you trying to launch/include your script on the server?

        Please read How (Not) To Ask A Question. Really. Read the section of "Show Some Effort". I don't want to ask you question after question to pull every detail out of you. You have not posted any of your code, and you have not shown how this problem is remotely relevant to Perl except that the .exe file was created using Perl. You have not shown what you have done to determine the cause of the error. You have not shown if your program works anywhere else than your development machine at all.

        All of these things are not helping us to help you.

Re: how to run script.exe on hosted site?
by gawatkins (Monsignor) on Aug 02, 2006 at 12:34 UTC

    A couple of things to consider:

    • Does the program have the desired result when run as a CGI script?
    • Do other scripts run on the server as cgi or exe?
    • What output do you get from the script when executed from the command line?
    My guess is that you have a problem with printing the correct header, but it could still be a server issue. If you still can't figure it out, post some example a code and output - someone should be able to find you issue quickly if it is a coding problem.

    Thank you,
    Greg W.