If I were to forget to run nohup as described Keep SSH Sessions running after disconnection, would it be possible to keep a process alive after executing it. For example, I am running python program.py for the last 3 hours and forget to run the initial nohup command, could that process stay alive, or would I have to take the hit and start again?
Asked
Active
Viewed 25 times
2
disown
. – Gilles 'SO- stop being evil' Mar 08 '17 at 23:48nohup
(or similar) AFTER a process was already initiated. This superuser answer usesdisown -h
. This method IMHO could be explained in more detail here, too. – FelixJN Mar 04 '21 at 13:51