Results for “java inputstream example script code 2 site:java.com 1”
bugs.java.com
Bug ID: JDK-8041711 (process) Process stream lost with bash...
Remove & from script. Functions as expected. This works in Java 6 but fails on 7 and 8 (linux). Fails for both stdout and stderr.To estimate the size of an array, InputStream.available() is used. This method appears to produce not quite accurate results in the described scenario.