Multiple instances of windows exe from unix


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 01-08-2009
Multiple instances of windows exe from unix

Hi,

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

regards,
sam
# 2  
Old 01-08-2009
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  
Old 01-08-2009
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
Connecting to multiple instances on the same server donpasscal UNIX for Beginners Questions & Answers 1 05-24-2018 04:46 PM
Multiple instances of pthread clerew Programming 2 05-22-2012 02:17 PM
Control multiple program instances - open multiple files problem hakermania Programming 3 02-06-2011 01:06 PM
Grep with multiple instances of same pattern spywarebox Shell Programming and Scripting 3 08-30-2009 05:25 PM
Grep with multiple instances of same pattern spywarebox Shell Programming and Scripting 0 08-30-2009 03:37 PM
Checking for multiple instances of a process raghu.amilineni Shell Programming and Scripting 4 04-04-2009 05:13 AM
Multiple instances of a job. Gangegowda Shell Programming and Scripting 1 10-16-2008 05:22 AM
multiple instances of same vg on same AIX machine navadeep AIX 1 07-25-2008 02:58 AM
kill multiple instances of the same program ipzig Shell Programming and Scripting 12 12-17-2007 02:42 AM
ypbind - multiple instances starting blowtorch Solaris 0 10-01-2007 07:51 AM
how to start a c++ exe on unix from windows. ch5082 Programming 5 09-16-2007 06:05 PM
detecting multiple instances ragha81 Shell Programming and Scripting 3 04-06-2007 11:09 AM
Multiple (thousands) of Cron Instances sysera UNIX for Advanced & Expert Users 10 01-17-2006 09:49 AM
Multiple file instances gozer13 UNIX for Dummies Questions & Answers 1 12-29-2004 07:08 PM
multiple instances of syslogd - is it possible? Gary Dunn UNIX for Advanced & Expert Users 9 07-20-2004 10:10 AM