attach to process by pid?

Giampaolo Rodolà g.rodola at gmail.com
Thu Mar 10 14:22:11 EST 2011


I think he wants to attach to another process's stdin/stdout and
read/write from/to them.
I don't know if this is possible but it would be a great addition for psutil.


--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/




2011/3/10 Miki Tebeka <miki.tebeka at gmail.com>:
>> Is there any way to attach to an already running process by pid? I want to send
>> commands from python to an application that is already running. I don't want to
>> give the command name to subprocess.Popen.
> We probably need more information. What do you mean by "send commands"? (What was your work flow if you could give the command name to Popen?)
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list