| Author |
Need to handle the interactive command using java
|
shital sonavane
Greenhorn
Joined: Jan 28, 2011
Posts: 20
|
|
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
Joined: Jan 03, 2004
Posts: 5893
|
|
You'll want a loop that reads a line from System.in and then processes that line.
|
 |
 |
|
|
subject: Need to handle the interactive command using java
|
|
|