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
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
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
> 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
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
> 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
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