lib 1013692 sS apacheCommonsExec(LS args) ctex { org.apache.commons.exec.CommandLine cmdLine = new(first(args)); for (arg : dropFirst(args)) cmdLine.addArg(arg); ret apacheCommonsExec(cmdLine); } sS apacheCommonsExec(S cmd) ctex { ret apacheCommonsExec(org.apache.commons.exec.CommandLine.parse(cmd)); } sS apacheCommonsExec(org.apache.commons.exec.CommandLine cmdLine) { delegate DefaultExecutor, PumpStreamHandler to org.apache.commons.exec. new DefaultExecutor executor; new ByteArrayOutputStream baos; OutputStream stream = teeOutputStream(printOutputStream(), baos); PumpStreamHandler pump = new(stream, stream); executor.setStreamHandler(pump); print("Exit value: " + executor.execute(cmdLine)); ret fromUTF8(toByteArray(baos)); }