system-lambda icon indicating copy to clipboard operation
system-lambda copied to clipboard

Capture ProcessBuilder process out/err

Open sansp00 opened this issue 1 year ago • 0 comments
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();
	});

sansp00 avatar Oct 30 '24 01:10 sansp00