!include once #1016736 // apache commons exec // returns exit value static int apacheCommonsExec_backtickToStreams(S cmd, OutputStream stdOut, OutputStream stdErr) ctex { CommandLine cmdLine = CommandLine.parse(cmd); new DefaultExecutor executor; PumpStreamHandler pump = new(stdOut, stdErr); executor.setStreamHandler(pump); ret executor.execute(cmdLine); }