StarCluster - Mailing List Archive

EXECUTE STARCLUSTER FROM JAVA CODE

From: Andrea La Rizza <no email>
Date: Mon, 27 Apr 2015 16:36:15 +0200

Hi All,
I'm creating a complex project, and what I want to do is to launch the
command "starclster start my custer" by pressing a button in a java
swing interface.
I have created a script called run with the command inside, and what I
do in my java cose is:

String[] cmd = new String[2];
                         cmd[0] = "sh";
                         cmd[1] = "run";
                         // create runtime to execute external command
                         Runtime rt = Runtime.getRuntime();
                         //Process pr = rt.exec("/path/to/script/run");
                         Process pr = rt.exec(cmd);

If I run the script from shall it works, i i press the button nothing
happens. Is there someone that have done something similar? Thanks.
Received on Mon Apr 27 2015 - 10:36:20 EDT
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject