Hi all, I have a machine running Windows XP that hosts an Apache web server. On this machine, I also have a batch file that invokes Java to run a Java application. I've authored a Perl script to change to the directory that the batch file is in and then to run it. When I double-click on the Perl file, the Java application is run within a command window. This window allows me to see all the output from the application. It also allows me to kill the application by simply closing the window.
Now, I've taken that Perl script and put it in the Apache cgi-bin directory. When I access the script from a web browser, the Java application starts as expected. But, instead of opening a command window, the application output gets printed to the browser. Is there any way to force the Perl script to launch the batch file (and, consequently, the Java application) within a command window on the server machine?
Thanks,
David
In reply to CGI script: How to run batch file in command window? by sirstruck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |