attach to process by pid?

James Mills prologic at shortcircuit.net.au
Tue Mar 8 19:49:27 EST 2011


On Wed, Mar 9, 2011 at 9:20 AM, Danny Shevitz <shevitz at lanl.gov> wrote:
> 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.

Unless I'm missing something here I don't see how you could
achieve communication with another process unless that
process has some kind of communication(s) interface; eg:
 * some kind of listening socket
 * some kind of I/O (pipe, stdin/stdout)

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"



More information about the Python-list mailing list