Keeping a process running after SSH has been closed

bash

It is a question that has been asked by a guy in a Slack channel and piqued my curiosity. Thanks to DuckDuckGo the answer came alone:


# Instead of running a process as,
$ proc &
# Try to use:
$ nohup proc &

The nohup will prevent the process from being terminated when the terminal disconect. Another solution is using the screen command. You have some examples at thegeekstuff.com.


I request your permission to obtain statistical data on its navigation on this website. If you continue to browse I consider you accept the use of cookies. This site is adapted to be compliant with the new law about General Data Protection Regulation. OK | More Information