dcsimg
Haw to execute programs on remote machine?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   giorgi_arabidze
Posted On:   Wednesday, June 2, 2004 10:40 AM

Hello JavaGurus,

using

Process p = Runtime.getRuntime().exec("command") ;

I can execute any command.

Is there a way to do same on remote machine, if remote

machine do not know anything about java?

I'd like to use something like "rexec".

Is there way in java

to do so ?

Thanks.

Re: Haw to execute programs on remote machine?

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, June 2, 2004 08:43 PM

Process p = Runtime.getRuntime().exec("ssh remote.host command") ;

Re: Haw to execute programs on remote machine?

Posted By:   Sean_Owen  
Posted On:   Wednesday, June 2, 2004 12:06 PM

Well, you could use Runtime.exec() to execute something like rexec locally, which would cause the command to be execute on another machine. rexec doesn't depend on Java. You could also use rsh.
About | Sitemap | Contact