Often you require a command to run in the background, independent of your shell login status so that the lengthy process can be carried our while you are working out something else.
The stackoverflow answer has several suggestions.
- Create a subshell with
(..)
- Use
setsid(1)
- Use
disown
builtin command
On a side note, use jobs
to find out running jobs in the background.