Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Multiple instances of windows exe from unix

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Multiple instances of windows exe from unix


I have a requirement to run multiple instances of an .exe file present in windows server from unix machine. The number of threads to be invoked is determined dynamically based on a variable field. We will be passing some parameters to windows .exe file for each instance.

I am a unix novice.It would be very helpful if you could provide a sample shell script for that.

Appreciate your fast response

# 2  
We'll need a bit more information here. What variant of UNIX are you using? How do you invoke the Windows program? RPC? Telnet/SSH? Telepathy?
# 3  
Hi sam99,

As far as I know, it would be impossible or hard to implement a direct connection where a command issued in a UNIX environment will affect a WIN based machine, but of course there is always some other ways.

Socket Programming Option:
For the UNIX machine, you can have a java or C program that sends "requests" to the WIN machine via sockets while the WIN machine will have another program (could be developed using VB6/.NET) that listens also via socket. Try searching for socket programming for further reference.

The Other Option:
Another option would be to have a program or script in the WIN machine (a vbscript will do) that runs infinitely, or regularly, that checks for new "requests" in the form of a flat file. The flat file would be the flag/token that will server as the "request" or signal to initiate another instance of the .exe. An update or the existence of that flat file can serve as the trigger for the script in the WIN machine to do so. In the end you'll need a minimum of 2 scripts to pull this off, one in the WIN machine (listener) and another in the UNIX machine (an FTP script will do).
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows
Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening...... UNIX for Beginners Questions & Answers
UNIX for Beginners Questions & Answers
Control multiple program instances - open multiple files problem
Hello. This shouldn't be an unusual problem, but I cannot find anything about it at google or at other search machine. So, I've made an application using C++ and QtCreator. I 've made a new mime type for application's project files. My system (ubuntu 10.10), when I right click a file and I...... Programming
Multiple instances of a job.
Could you please let me know how to create/make a multiple instances of a job/process in ksh(shell scripting). i.e., at present the parent script is calling another child/dependent script for only once. What we want is, the parent script itself has to execute multiple times, and in each one it...... Shell Programming and Scripting
Shell Programming and Scripting
how to start a c++ exe on unix from windows.
I'm very new to c++ & unix programming. I have a c++ exe that runs on the unix box, but I am trying to write a c++ windows app that executes the program on unix. I have tried execv(), but it doesn't seem to work or I'm doing something wrong. Would really like to see examples if at all possible. ...... Programming
detecting multiple instances
Hi Gurus I have a requirement like this. i use solaris OS.. if there are 2 instances of the same ksh file running in the directory, i need to kill the ksh file that started to run latest. suppose ragha.ksh starts running thru cron in abc/xyz directory now ragha.ksh started running by any...... Shell Programming and Scripting
Shell Programming and Scripting

Featured Tech Videos