dcsimg
How can i connect to and execute commands remotely on a remote system from my java application without using telnet.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   gopi_kumar
Posted On:   Monday, September 3, 2001 04:36 AM

How can i connect to and execute commands remotely on a remote system from my java application without using telnet and how can i execute command like passwd on a linux system using java Runtime.

Re: How can i connect to and execute commands remotely on a remote system from my java application without using telnet.

Posted By:   Nathan_Meyers  
Posted On:   Monday, September 3, 2001 06:02 PM

Re: How can i connect to and execute commands remotely on a remote system from my java application without using telnet.

Posted By:   Steve_Kennedy  
Posted On:   Monday, September 3, 2001 10:11 AM

You can use RMI (Remote Method Invocation)
and the Runtime.getRuntime.exec function.
Then you can just send a string (the command) to
the remote computer, and the remote computer can
call the Runtime.getRuntime.exec(command) to
execute the command in it's local runtime environment.

The remote computer can't be blocked by a firewall
or using NAT/Masquerading.

Check out the RMI forum and java.sun.com for
more information on RMI.

About | Sitemap | Contact