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.
Ramakrishnan G
Greenhorn
Joined: Mar 15, 2002
Posts: 3
posted
0
Hai Arti, Can u give me more specific details about what thos processes are doing.