A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Need to handle the interactive command using java
Read mail file using script
How to Run a command
Command line question
Trapping of different shells like DOS,Unix
problem running SSH with JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015