wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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

logging into linux machine through java

dhanunjaya kumar

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

Joined: Mar 22, 2005
Posts: 41173
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
Call UNIX commands from JAVA
Java RMI Connection Problem
Uninstall Weblogic
How to execute linux script remotely from java program on windows
Callling a Script from a java program