What IPC accessible from Python
Guenther Starnberger
gst at sysfrog.org
Sun Feb 18 13:38:35 EST 2001
<abouf066 at aix2.uottawa.ca> writes:
> I need to spawn a process within a python application and I need >
> to have some communication between the child and the parent. Sockets
> are > 'sort of heavy' for my application. I was thinking to use a
> shared memory > or a pipe but I did not find any documentation
> (example) to understand how > this would be used.
try the popen2 module.
import popen2
foo=popen2.Popen3(command,1,1024)
foo.tochild.write("hello")
/gst
--
sysfrog.org
More information about the Python-list
mailing list