Running Unix script from Win32
1 posts in topic
Flat View  Flat View

Posted By:   Piotr_Kuczkowski
Posted On:   Monday, July 23, 2001 06:26 AM

I'm writing a Java applikation that should be started at a local Windows Computer. I want the applikation to run a Unix shell script that lies on a Unix machine. Can I do this using the Java Runtime class? I can only use this class to run dos commands, but I dont know how to setup the right enviroment variable envp to make it work in a Unix enviroment....

thanks for all help... Peter...

Re: Running Unix script from Win32

Posted By:   Anonymous  
Posted On:   Monday, July 23, 2001 07:30 AM

Just to make sure: Your Java app runs on Win32 and the script on Unix and they're both different machines, right?

If this is the case, you need to use rsh or rexec to do a remote network invokation. Use e.g. the ORO implementation of these prototols, calles ORO Netcomponents.

If I misunderstood you, and the unix script needs to be actually executed on the Win32 box, you may want to look in to Cygwin.

Hope this helps,


About | Sitemap | Contact