(FtnMessage fmsg, String scriptContent)
| 78 | } |
| 79 | |
| 80 | private void processScript(FtnMessage fmsg, String scriptContent) { |
| 81 | String output = executeScriptWithConsole(scriptContent, false); |
| 82 | logger.l5(String.format("got script output %s", output)); |
| 83 | FtnTools.writeReply(fmsg, |
| 84 | MessageFormat.format("{0} exec script", getRobotName()), |
| 85 | output != null ? output : "Okay"); |
| 86 | } |
| 87 | |
| 88 | public static String executeScriptWithConsole(String scriptContent, boolean force) { |
| 89 | Bindings bindings = new SimpleBindings(); |
no test coverage detected