This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logging into linux machine through java

 
dhanunjaya kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic