From 75673d18f526e57bda971f5111a9915ec6f5a8ec Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 26 Mar 2009 14:15:10 +0000 Subject: [PATCH] minor fix: process argument also working on linux --- tools/cooja/contiki_tests/sky_shell_exec_serial.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/cooja/contiki_tests/sky_shell_exec_serial.js b/tools/cooja/contiki_tests/sky_shell_exec_serial.js index 5ed545c28..338b131c4 100644 --- a/tools/cooja/contiki_tests/sky_shell_exec_serial.js +++ b/tools/cooja/contiki_tests/sky_shell_exec_serial.js @@ -16,7 +16,9 @@ GENERATE_MSG(1000, "continue"); YIELD_THEN_WAIT_UNTIL(msg.equals("continue")); 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())); while ((line = stdIn.readLine()) != null) { node.write(line + "\n");