You might want to read the output in a thread if it's very long, I'm not sure sure how big the buffer is. But that always worked for me...
p
pgreze
03/16/2021, 7:31 AM
(quite late to the party)
I had a similar need but didn't really enjoy my time with ProcessBuilder, so I decided to open-source my solution: https://github.com/pgreze/kotlin-process