Spawn a process, then exit, whilst leaving process running?

Victor Hooi victorhooi at gmail.com
Sat Feb 9 00:04:33 EST 2013


Hi,

I have a Python script that I'd like to spawn a separate process (SSH client, in this case), and then have the script exit whilst the process continues to run.

I looked at Subprocess, however, that leaves the script running, and it's more for spawning processes and then dealing with their output.

Somebody mentioned multiprocessing, however, I'm not sure quite sure how that would work here.

What's the most Pythontic way of achieving this purpose?

Cheers,
Victor



More information about the Python-list mailing list