100 Useful Command-Line Utilities
by Oliver; 201436. nohup
As we mentioned above, nohup ("no hang up") allows your script to run even if you quit the terminal, as in:$ nohup script.py > out.o 2> out.e &If you start such a process, you can squelch it by using kill on its process ID or, less practically, by shutting down your computer. You can track down your process with:
$ ps -Af | grep script.pynohup is an excellent way to make a job running in the background more robust.