I need to launch an Xwindows application and a java application from a web-page running on Apache. The first is an exe file and the second is a java file. I have a simple perl script to run these. These run fine and the perl script launches the 2 applications (separately), but I am unable to get them to launch from an IE browser running on apache:
----------------------------
#!c:/perl/bin/perl.exe -w
use strict;
use CGI;
my $q = new CGI;
print $q->header( "text/plain" );
system "cmd.exe /c test.bat";
#system "xapp ";
----------------------------
test.bat is as follows:
-----test.bat-------
CALL notepad
REM CALL java -jar myapp.jar
--------------------
DETAILS:
- I can run on windows 2000 from the DOS prompt as follows:
*xwindows application (xapp.exe)
c:> xapp
*Java application.
c:> test.bat
This brings up the GUI for my java application.
- The perl script above works and launches the applications in a seperate window. However, it waits for the application to finish- does not spawn a thread and forget about them.
QUESTION: How can I do that? e.g. the notepad application is launched and control returns irrespective of what the user does in the
application. Currently, the DOS prompt freezes till the user exists the application and retruns.
- The above script does not run through the web-browser (IE running apache). I had expected a seperate window to be launched for notepad, or the xapp or the java application, but that does not happen.
QUESTION: I am lost. It looked like a simple problem and this must have been experience before by folks. Would appreciate guidance
through this.
Bookmarks