You can't call Windows programs directly from a Unix machine. Unix uses a completely different mechanism for executables. You will need to setup a client-server pair, with the client on the Unix machine and the server on the Windows machine. The client sends commands to the server which will then use Runtime.exec or ProcessBuilder to execute these commands. That's what Nitin meant.
. You can youse Ant's 'telnet' task to log on to the remote unix and execute the commland there.
. Some FTP servers support the 'site exec' command. If your company's unix machine runs such an ftp server, that would be an option.
Be warned that Telnet is a very insecure protocol. You should not allow any computer outside your local network to use it, and even within the local network you should limit access as much as possible.
Rob Spoor wrote:Be warned that Telnet is a very insecure protocol. You should not allow any computer outside your local network to use it, and even within the local network you should limit access as much as possible.
Yes it is (same for FTP). These protocols send everything readable over the network. It is always a good idea to let the company's security team validate the approach.
The good thing is that the vulnerabilities are known . Starting to build an own client/server application/protocol from scratch might introduce security holes still unknown to mankind.
Next step could be to step over to SSH , SSH tunneling
Maybe the WAN route between the two countries is already secured and encrypted?
Joined: Oct 28, 2011
We are calling with in our network only and I got one option to call windows services using FreeTDS.
and we are checking to mount windows folder and use it in unix machine(not calling exe/ control files).
vardhan reddy wrote:We are planning to mount folders which contains excel files (these files will be used by exe). we will place exe file in unix environment itself.
As has already been pointed out, Unix CANNOT execute .exe files, so it doesn't matter where you "put" it. On the other hand, OpenOffice CAN open most Excel files (and edit them; although what it replaces them with may not be the latest type).
BTW: I would suggest using Samba to connect your Windows shares. It is very robust and I believe can be tunnelled through SSH (although I've never tried it).
Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
subject: How to call windows exe file placed in windows machine from unix machine