minor fix: process argument also working on linux
This commit is contained in:
parent
ac22ad5081
commit
75673d18f5
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ GENERATE_MSG(1000, "continue");
|
||||||
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
||||||
|
|
||||||
log.log("Uploading hello-world.ce:\n");
|
log.log("Uploading hello-world.ce:\n");
|
||||||
process = new java.lang.Runtime.getRuntime().exec("sh -c \"../../tools/base64-encode < hello-world.ce\"", null, helloworld.getParentFile());
|
cmdarr = "sh -c xxx".split(" ");
|
||||||
|
cmdarr[2] = "../../tools/base64-encode < hello-world.ce";
|
||||||
|
process = new java.lang.Runtime.getRuntime().exec(cmdarr, null, helloworld.getParentFile());
|
||||||
stdIn = new java.io.BufferedReader(new java.io.InputStreamReader(process.getInputStream()));
|
stdIn = new java.io.BufferedReader(new java.io.InputStreamReader(process.getInputStream()));
|
||||||
while ((line = stdIn.readLine()) != null) {
|
while ((line = stdIn.readLine()) != null) {
|
||||||
node.write(line + "\n");
|
node.write(line + "\n");
|
||||||
|
|
Loading…
Reference in a new issue