PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 2, 2022

[FIXED] How can i run my python script in the background in my VPS

 August 02, 2022     linux, python-3.x, vps     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing