View Full Version : Command to end associations between program and terminal

29th June 2007, 12:52 AM
Is there a way to run a program e.g. eclipse, from a terminal window such that when i close the terminal window, it will NOT close eclipse?


29th June 2007, 03:50 AM
Yes. On the command line, type the command (plus any options/arguments, etc.), then follow with a space (at least one) and then & (the ampersand symbol, SHIFT-7). The command with "fork" into the background, you may then exit the terminal, and the program will continue to run in the background.

If the program is already running, CTRL-Z will place the program in the background, but will also stop it. Typing bg %1 (replace the 1 with whatever number the CLI showed you) will allow the program to start/continue running in the background, and you can then exit the terminal window.

29th June 2007, 04:32 AM
Not necessarily.... you need 'disown' command after typing your command with the ampersand at the end. Or, use nohup (not the one that comes with the shell)

29th June 2007, 10:23 AM
>gedit & disown

exactly what i was looking for, thanks!