In a groovy script I execute an application on linux and windows with:
def proc = command.execute()
proc.consumeProcessOutput( System.out, System.err)
println "here"
proc.waitFor()
println "never here"
but the waitFor() call never returns. The strange thing is that it only happens on linux.
Based on this: process.waitFor() never returns
it could be caused by not reading from the appropriate streams. But as you can see I consume both System.out, System.err. Are there other streams that could be consumed?