Debugging pipe IPC
Ian Clark
iclark at mail.ewu.edu
Tue Dec 18 14:15:09 EST 2007
Jim B. Wilson wrote:
> ... My fondest wish is to play the role of the child at the
> good old ">>>" prompt. ...
>
> Jim
Okay, I misunderstood the direction you wanted to go. I thought that you
wanted to play the part of the mother, giving commands to the child and
not the other way around.
Assuming you're on a *nix make child.py as:
import os
os.system("netcat -l -p 1234 localhost")
Run it though mother and on another terminal type: netcat localhost 1234
HTH,
Ian
More information about the Python-list
mailing list