Executing interactive shell commands in Java <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/10407308/redirect-stdin-and-stdout-in-java">Redirect stdin and stdout in Java</a> </p> </blockquote> <p>I know how to execute shell commands in Java but how to do it so my application can write to its input and read from its output. </p>