kill xterm kills app!

Paul D. Brown pdb at pdb.homelinux.net
Thu Apr 29 03:24:35 UTC 2004


On Wed, 2004-04-28 at 10:18, Jay Daniels wrote:
> If I open a terminal and run a program in the background using the "&"
> when I close the terminal the program gets killed.
> 
> xclock &
> x out of terminal kills xclock!
> 
> How do I prevent this?
> 
> 
> jay
> 

If you start it with the ampersand and later want to close the xterm but
keep the other app (xclock) going, you can use 'disown' to do the same
thing that 'nohup' does when starting it as mentioned in earlier posts. 
For example:

$ xclock &
$ disown xclock

Paul





More information about the fedora-list mailing list