Under a GUI, I need to run a perl script, how to do this?

Hi - I am writing a GUI for my clients and one of the things my program must do is run a perl script. I am able to run perl.exe but it seems like perl.exe is not running the script. I also tried to put the perl script in a batch file and then call the batch file from my java GUI program. I still get the same issue of just perl.exe running but thats not running the script. My last attempt was to write a small class to test if perl.exe can run the script under a command line. I got the perl.exe to run the perl script but how do I but implement that class in my GUI if my test class needs a command line? How can I run a command line in my GUI so the perl script can be run.

The Runtime.getRuntime.exec(RunPerlScript) is not working like I want it.

I also tried Runtime r = Runtime.getRuntime();

Process p = r.exec(RunPerlScript);

How can I run the MS-DOS prompt from my program if the Runtime Environment is running already. The Runtime Environment seems to not allow another prompt to be opened and from there I can run the perl script manually or automatically from my program.

What does the "cmd /c start..." or "c:\\windows\\command.com..." do? I have seen that in the forum but it doesn't seem to be running the perl script. The perl.exe runs, but not the perl script. I need anyones help desperately. Damn microsoft, why did they remove completely the functionality of DOS. I have a feeling my program will run perfectly under a UNIX environment, because I needed to do was open another shell. Thats what I need in windows!

Thank you for your help.

Seigot

[1624 byte] By [seigot] at [2008-1-9]
# 1
hiI am working on this perl scripts do run on GUI's well the process command is fine try java 1.3 it works fine. if u need more help let me knowall the best
revasree at 2007-6-29 > top of java,Archived Forums,Portability & Platform Independence [Archive]...