This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes logging into linux machine through 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 » Sockets and Internet Protocols
Bookmark "logging into linux machine through java" Watch "logging into linux machine through java" New topic
Author

logging into linux machine through java

dhanunjaya kumar
Greenhorn

Joined: Sep 22, 2006
Posts: 16
is it possible to login into a linux machine from java program,and i want execute linux commands from my java program.
i don't know wether this is the right place to post this question.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41020
    
  43
The Jakarta Commons Net library implements both Telnet and rexec/rcmd/rlogin, both of which allow you to log into a remote machine and issue commands on it. If you want something more secure, have a look at SSH, for which Java libraries are available as well.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logging into linux machine through java
 
Similar Threads
Java RMI Connection Problem
Uninstall Weblogic
How to execute linux script remotely from java program on windows
Callling a Script from a java program
Call UNIX commands from JAVA