From: J G Miller on
On Tue, 16 Mar 2010 06:19:26 +0000, Bit Twister wrote:

> On Mon, 15 Mar 2010 22:50:30 -0700 (PDT), yawnmoth wrote:
>>
>> Is there a way to make it so
>> Firefox would stay open even if the Terminal from which it opened was
>> closed?
>
> Have you tried nohup firefox &

Also

(exec firefox &)

will work.
From: unruh on
On 2010-03-16, Bit Twister <BitTwister(a)mouse-potato.com> wrote:
> On Mon, 15 Mar 2010 22:50:30 -0700 (PDT), yawnmoth wrote:
>> If, in Ubuntu, you open a new terminal, do "firefox &" and then close
>> the terminal Firefox will close, as well. Is there a way to make it
>> so Firefox would stay open even if the Terminal from which it opened
>> was closed?
>
> Have you tried nohup firefox &

The problem is stdin/out/error. They are connected to the terminal. If
you close the terminal you close these three files, and the poor program
is suddenly left adrift. You could also try
filefox &>/dev/null </dev/null &
to see if that helps

From: pk on
yawnmoth wrote:

> If, in Ubuntu, you open a new terminal, do "firefox &" and then close
> the terminal Firefox will close, as well. Is there a way to make it
> so Firefox would stay open even if the Terminal from which it opened
> was closed?

Works fine for me. I can close the terminal and firefox keeps running.

From: John Hasler on
> Works fine for me. I can close the terminal and firefox keeps running.

The Firefox (or a script) is either detaching itself or catching SIGHUP.
--
John Hasler
jhasler(a)newsguy.com
Dancing Horse Hill
Elmwood, WI USA
From: John Hasler on
Bit Twister writes:
> Have you tried nohup firefox &

unruh writes:
> The problem is stdin/out/error.

Nohup redirects them (redirecting stdin is a GNU extension).

> You could also try firefox &>/dev/null </dev/null & to see if that
> helps

Without nohup Firefox will still die.
--
John Hasler
jhasler(a)newsguy.com
Dancing Horse Hill
Elmwood, WI USA