How to run a Linux bash script that keeps running after the terminal that started it is closed?


Easy peasy. If the bash script is called

script.sh

Start it like this:

nohup script.sh &

You can now close the terminal and the script will continue to run.

Comments