Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a Windows executable in a CGI script on Apache

Status
Not open for further replies.

anpfire

Programmer
Oct 8, 2003
22
CA
Hi,
I am running some CGI scripts (written in Perl) on an Apache server, which is on a Windows machine. I am trying to run a Windows EXE file (which takes command-line arguments) within a CGI script, which will be run server-side.
I tried: system("C:/temp/program.exe");
And the browser just keeps loading the webpage (that is created by the CGI script), but never actually loads it. And no errors are reported by the Apache server.
I do not know if this is the right command. But if it is, do you know whether the Apache server needs to be configured to allow EXEs to be run?
I appreciate any help you can give me. Thanks.
 
What Windows executable, exactly, are you trying to run? Not one like Word that requires interaction with the desktop to operate, right?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
I solved the problem. Someone else gave me another command to use:
$rc = `C:/temp/program.exe`;
And that worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top