Python process communication

Fredrik Lundh fredrik at pythonware.com
Sun Aug 17 16:59:06 EDT 2008


projects.gg.aaron at gmail.com wrote:

> I'd like to write a script that will connect to another already running 
> process, pipe some data to it's input and receive data from it's output. 
> I can create another process using subprocess module, but how do I 
> connect to already running process? Maybe there is a better solution for 
> process communication? I've searched in the net and found nothing, so 
> I've decided to post my problem here, hopefully someone will help me.

do you control the other process?  can you make it listen to a local 
socket or a named pipe?

</F>




More information about the Python-list mailing list