Answer the question
In order to leave comments, you need to log in
How to start a system process and exit?
Faced the problem of launching system processes from Python.
I run them with the usual subprocess.Popen(command, shell = True, stdout = PIPE, stderr = STDOUT) so as not to wait for them to finish, but when the script exits, they all die (this seems to be logical).
How can I start a process from a Python script and exit? However, he must continue to work in the system.
I will cut them down later, saving their PIDs in advance.
Thank you.
Answer the question
In order to leave comments, you need to log in
Maybe try running through the nohup system command? For a console, this is ideal, and probably will suit you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question