• Post Reply Bookmark Topic Watch Topic
  • New Topic

runtime.exec() call and user interaction  RSS feed

 
Aarti Thorat
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Arti,
Can u give me more specific details about what thos processes are doing.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!