running a python file 24/7 on a vps?

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
judepsh
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Jul 04, 2021 9:01 am

running a python file 24/7 on a vps?

Post by judepsh »

is there a way to run a python program 24/7 on a server with the command line or shell open so that i can interact with it? sorry for the easy question but i'm completely new to server mechanics. Thanks!
Naleksuh
This is my homepage
This is my homepage
Posts: 298
Joined: Thu Jul 25, 2019 12:35 am

Re: running a python file 24/7 on a vps?

Post by Naleksuh »

Something like screen should work.

Code: Select all

screen -m py file.py
Post Reply