Run a program from python, and have it continue to run after the script is killed
I’ve tried running things like this:
I’ve tried running things like this:
I have created a script that moves files from one folder to another.
But since the original folder is the Downloads folder I need it to always run in the background.
First this question is related but definitely not the same as this very nice question:
My python code:
There’s a wealth of stack exchange answers regarding nohup, here’s a couple for reference:
When do you need ‘nohup’ if you’re already forking using ‘&’?
Why use “nohup &” rather than “exec &”
I want to run a process in background without killing it on shell exit, according to Nohup concept the following command should work until I kill it manually:
I need to execute multiple commands using nohup. Each command should be executed after the previous command.
This question is old, and I am still not clear about why.