Answer the question
In order to leave comments, you need to log in
How to run a program on the console remotely on the server?
There is a program which is started by means of the terminal. The program heavily loads the computer, so I want to upload it to the VPS. What are the ways that after running the program on the server, I can safely disconnect the connection to the VPS? To launch a program in the morning, and in the evening just look at how things are going.
If you run through a simple ssh, then after disconnecting the connection, the program will continue to work or will it also turn off?
Answer the question
In order to leave comments, you need to log in
If we're talking about linux/bsd, then the answer is screen or tmux .
As a last resort, run nohup command & but then all the output will go to the nohup.out file, and in the case of screen / tmux a separate virtual terminal is created, from which, after launch, you can disconnect, and then reconnect and see everything that the launched program outputs or waits for program.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question