PDA

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



1jackjack
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?

Cheers

Hlingler
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.

BillT440
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)

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

exactly what i was looking for, thanks!