wood burning stoves*
The moose likes Java in General and the fly likes running a shell script in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "running a shell script in java" Watch "running a shell script in java" New topic

running a shell script in java

wilfredo doming

Joined: Aug 21, 2008
Posts: 8
Can anyone please help me establishing a interactive ssh session. I want to execute a passwd command on a remote machine. But, once i execute the passwd command, the shell expects for a passowrd. How do i provide this password???
Nitesh Kant

Joined: Feb 25, 2007
Posts: 1638

J2SSh is one such library that will help you create and work on an ssh session from java.

apigee, a better way to API!
It is sorta covered in the JavaRanch Style Guide.
subject: running a shell script in java
Similar Threads
shell script problems
process execution in linux
executing UNIX passwd command through Java
How to execute windows shell command from jsp using javascrpt
Print simple jpeg image using java