A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
Command line question
problem running SSH with JSP
Read mail file using script
Trapping of different shells like DOS,Unix
How to Run a command
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014