Issue
i have a python script that will take time to finish executing like more than 48 hours, and i dont want to keep my laptop on and my ssh connection throughout that period, My question now is that how can i run the python script so that even when I logout from my VPS, the script will still be running in the VPS
Solution
You can use nohup command and it will run even if you close the session
nohup command-to-run-script &
All output will be written to a file named nohup.out
Answered By - omriv Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.