Re: Having multiple instances of a single application start a single instance of another one

2007-02-26 Thread Eric Brunel
On Fri, 23 Feb 2007 23:39:03 +0100, Troy Melhase <[EMAIL PROTECTED]> wrote: >> The first time A starts, it should open a B process and start >> communicating with it. All other times an A instance starts it should >> simply talk with the B that already is open. > > B should write its process id

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Larry Bates
buffinator wrote: > I have two applications that should work together, let's call them A and B. > > The first time A starts, it should open a B process and start > communicating with it. All other times an A instance starts it should > simply talk with the B that already is open. > > The problem

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Jerry Hill
On 2/23/07, buffinator <[EMAIL PROTECTED]> wrote: > 2. How do I check if a process ID is bound to a running application. Under windows, this should work: >>> import win32process >>> running_pids = win32process.EnumProcesses() >>> running_pids (0, 4, 1048, 1496, 1656, 1836, 1896, 756, 988, 1712, 22

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Troy Melhase
> Three very simple questions then. > > 1. How do I find out a running applications process ID import os mypid = os.getpid() > 2. How do I check if a process ID is bound to a running application. this is os-specific. i'm sure there's a windows api provided for it. > 3. There won't be any issue

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread buffinator
Troy Melhase wrote: >> The first time A starts, it should open a B process and start >> communicating with it. All other times an A instance starts it should >> simply talk with the B that already is open. > > B should write its process id to a location known by both > applications. When A starts

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Troy Melhase
> The first time A starts, it should open a B process and start > communicating with it. All other times an A instance starts it should > simply talk with the B that already is open. B should write its process id to a location known by both applications. When A starts, it should read that PID fro

Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread buffinator
I have two applications that should work together, let's call them A and B. The first time A starts, it should open a B process and start communicating with it. All other times an A instance starts it should simply talk with the B that already is open. The problem here is, if I start say 40 A a