> 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?)