Question

How do I keep my Python script running?

Posted June 10, 2015 13.6k views
Python

Hello, I recently purchased a droplet and have gotten everything up and running. I am using it for a Reddit bot I coded in Python. However, I noticed that in order to run the script I need to open Putty on my computer and keep it open. Is there anyway to run my Python script on my droplet without needing to use my computer.

Basically I am looking to run my python script 24/7 without use of my computer, which is what I thought the VPS was for, I just cannot figure it out. I am rather new to this so I apologize for my terminology or level of question.

Language: Python
OS: Ubuntu

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Use screen or nohup.

@raghavyadav990 if that’s the case screen doesn’t work 24/7

Submit an Answer