views:

41

answers:

1

I want to make pipe or queue in Python between one process (current) and other existing in system. how can I make it? I know current and other proces ID. I work on Windows 32bit.

+3  A: 

Like this.

python one_process.py | python the_other_process.py

Make the OS do the work for you.

In one_process.py, you write to sys.stdout.

In the_other_process.py, you read from sys.stdin.

That's it.

S.Lott
+1 short and sweet
Matt Joiner