Starting something from the gnome-terminal
Patrick Asselman
iceblink at seti.nl
Thu Oct 4 09:41:43 UTC 2012
On 2012-10-03 22:08, Avi Greenbury wrote:
> 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
An alternative may also be to install "screen". This gives the option
of detaching and also reattaching to a screen session.
See some example usage here:
http://www.thegeekstuff.com/2010/07/screen-command-examples/
Best regards,
Patrick Asselman
More information about the ubuntu-users
mailing list