Execute Commands After You Exit From a Shell Prompt

If you need to execute a program or a bash script that should continue also when you exit from the shell prompt, then you just need to use the nohup command to avoid programs quitting when the shell\terminal prompt is closed.

nohup /path/to/command arg1 arg2 &

Use jobs command to list all jobs:

jobs -l

More Related Posts