Question

How do I keep my Python script running?

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

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Use screen or nohup.

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