perform same operation as linux pipe in java?
<p>How can I do the following in Java code (without invoking the shell directly - not using the pipe operator at all)?</p>

<pre><code>echo path | ./app
</code></pre>

<p>Is this the same as starting the app and then writing to STDIN?</p>

<p>I want to be able to start a process from Java and destroy it (and not worry about child processes)</p>
