I want to do something along these lines.
Process shell = Runtime.getRuntime().exec("/bin/bash");
Then I want to use the streams for the shell process to talk to the bash shell. However this doesn't seem to work at all and it totally stumps me.
I found this link which seems to talk about the same problem. Why exactly does this happen and are there better solutions than the one outlined in the link?