Starting something from the gnome-terminal

Avi Greenbury lists at avi.co
Wed Oct 3 20:08:08 UTC 2012


Johnny Rosenberg wrote:
> When I start something from the gnome-terminal, then exit the
> terminal, that something also exits. How can I prevent that from
> happening?
> 
> For example:
> Open the gnome-terminal
> Type something like
> $ SomeApp --SomeParameter=Something &
> $ exit
> 
> What happens is that when exiting the gnome-terminal, ”SomeApp” is
> also terminated. I need to know how to start something from the
> gnome-terminal that is not ”connected” to the terminal at all.
> Any ideas?

The traditional way to do it is to pass it as an argument to nohup
(for 'no hangup'):

nohup SomeApp --SomeParameter=Something &

this will also redirect all output to a file (nohup.out by default).

-- 
Avi




More information about the ubuntu-users mailing list