system-lambda
system-lambda copied to clipboard
Capture ProcessBuilder process out/err
trafficstars
Is there a way to capture the IO from a process built by ProcessBuilder like the following ?
tapSystemErrAndOut(() -> {
final Process process = new ProcessBuilder(commandLine).inheritIO().start();
process.waitFor();
});