A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Java in General
Need to handle the interactive command using java
Joined: Jan 28, 2011
Sep 24, 2012 08:53:10
I want to handle the interactive command using
. 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.
Joined: Jan 03, 2004
Oct 14, 2012 09:05:50
You'll want a loop that reads a line from System.in and then processes that line.
I agree. Here's the link:
subject: Need to handle the interactive command using java
How to Run a command
Command line question
Read mail file using script
problem running SSH with JSP
Trapping of different shells like DOS,Unix
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014