lib 1013692 sS apacheCommonsExec(LS args) ctex { var cmdLine = new org.apache.commons.exec.CommandLine(first(args)); for (arg : dropFirst(args)) cmdLine.addArgument(arg); ret apacheCommonsExec(cmdLine); } sS apacheCommonsExec(S cmd) { ret apacheCommonsExec(org.apache.commons.exec.CommandLine.parse(cmd)); } sS apacheCommonsExec(org.apache.commons.exec.CommandLine cmdLine) ctex { 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)); }