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
2010-08-17 14:22:35
+1 short and sweet
Matt Joiner
2010-08-17 14:25:32