Linux – Nohup stops script after logging out

linuxnohup

I have to run a python script in the background in my server. I am using the command:

nohup python MyScript.py &

in the command line. Now, when after running this I close the connection and log out and log in back it fails, I see that its not running anymore. Any ideas?

EDIT I am using Putty software to log into my server and from there am trying it.

Best Answer

Try:

nohup python MyScript.py &
disown