Answer the question
In order to leave comments, you need to log in
How to run the script on VPS correctly?
Good evening, there is a vps server with ubuntu 20.04 on it. Two python scripts are running on the server 24/7. But they only work when I'm in an ssh session with a vps (ssh client - mobachterm). As soon as I exit the server the scripts stop working.
That is, I go to the server, run the scripts, and until I left the server, the scripts work.
Notes:
Answer the question
In order to leave comments, you need to log in
the easiest way to run with nohup (nohup /there/is/path/to/your/script &)
the correct way is to set up services to run and control your scripts. https://habr.com/ru/company/southbridge/blog/255845/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question