my dog learned polymorphism*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "running a shell script in java" Watch "running a shell script in java" New topic
Author

running a shell script in java

wilfredo doming
Greenhorn

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
Bartender

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: http://aspose.com/file-tools
 
subject: running a shell script in java