Python - forking an external process?
victorhooi at gmail.com
Wed Jul 3 05:47:29 CEST 2013
I have a Python script where I want to run fork and run an external command (or set of commands).
For example, after doing <xyz>, I then want to run ssh to a host, handover control back to the user, and have my script terminate.
Or I might want to run ssh to a host, less a certain textfile, then exit.
What's the idiomatic way of doing this within Python? Is it possible to do with Subprocess?
(I did see this SO post - http://stackoverflow.com/questions/6011235/run-a-program-from-python-and-have-it-continue-to-run-after-the-script-is-kille, but it's a bit older, and I was going to see what the current idiomatic way of doing this is).
More information about the Python-list