This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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!
 
 
subject: running a shell script in java
 
Similar Threads
Print simple jpeg image using java
shell script problems
process execution in linux
executing UNIX passwd command through Java
How to execute windows shell command from jsp using javascrpt