File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!
I agree. Here's the link:
subject: running a shell script in java
It's not a secret anymore!