I wonder if Runtime.exec() can deal with user interaction in subprocess. For example, program A.java calls program B.class through Runtime.exec(). Program B gives some output and receives standard input. I understand how B's output is redirected to A through the getInputStream(), but I have no idea how B's standard input(terminal input) can be handled. When I tried this type of program, I found out two processes just wait(maybe blocked) forever. Any Help is greatly appreciated. Thanks ! Aarti.
posted 14 years ago
Hai Arti, Can u give me more specific details about what thos processes are doing.