This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to handle the interactive command using java

 
shital sonavane
Greenhorn
Posts: 20
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to handle the interactive command using java. Dont know how to do this.

For example i am executing command -su on linux machine. after this command execution we need to enter the password.
This is the example not the exact command.

Please suggest me the solution.

Thanks in advance.

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll want a loop that reads a line from System.in and then processes that line.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic