G
G
German2019-03-11 22:02:51
linux
German, 2019-03-11 22:02:51

How to start and put a process in the background and then display?

The whole thing is unfolding on VDS.
There is a bash script, you need to run it, configure it, and let it work in the background, moreover, I need to exit, and the server will work, the process is in the background.
Then you need to go in and look at the progress, that is, remove the process from the background and manipulate it. How to organize it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-03-11
@mrjbom

Use screen or tmux

A
Alexander Glukhov, 2019-03-11
@ra1

Use the wonderful tmux as suggested above. You can also use the Ctrl + Z
signal , which will cause the process to stop and go into the background. In order to resume it, but in the background, as if you started it with the & parameter , you will need to execute the bg command further to return it to the background, or continue in the background: fg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question