don’t terminate even I close the terminal

March 15th, 2007 mysurface Posted in Misc, nohup | Hits: 21598 | 2 Comments »

There are many cases where when I run a program from a terminal (gnome-terminal, xterm etc), and I accidentally close the terminal, the program will be terminated as well. This happen even I send the program to background, for example I initiate xmms from gnome-terminal

xmms &

When I close the gnome terminal, xmms is terminated as well. To avoid programs from terminated, use a command call nohup (No hang up!)

nohup xmms

The terminal output will looks like this:

nohup: appending output to `nohup.out'

It will now not hang up when you close your terminal.

2 Responses to “don’t terminate even I close the terminal”

  1. [...] You now can close your terminal and enjoy your copy and paste. To know what is nohup? check out Don’t terminate even I close the terminal. [...]

  2. I’m glad I discovered this blog page, I couldnt find any info on this topic prior to. I also run a niche site and in case you are ever serious in doing a bit of guest writing for me you should feel free to let me know, i’m always look for people to check out my weblog. Please stop by and leave a comment sometime!

Leave a Reply