don’t terminate even I close the terminal

March 15th, 2007 mysurface Posted in Misc, nohup | Hits: 29161 | 4 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.

4 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!

  3. Fantastic beat ! I would like to apprentice even as you amend your web site, how can i
    subscribe for a blog website? The account aided me a acceptable deal.
    I were a little bit familiar of this your broadcast offered shiny clear idea

    homepage (Juli)

  4. Good information. Lucky me I came across your website by
    chance (stumbleupon). I’ve saved it for later!

    site (Gabriele)

Leave a Reply