This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logging into linux machine through java
 
It's not a secret anymore!