help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: despite disown -h, process ends with terminal


From: alex xmb ratchev
Subject: Re: despite disown -h, process ends with terminal
Date: Mon, 22 May 2023 08:18:18 +0200

On Mon, May 22, 2023, 06:35 watael rocketmail via <help-bash@gnu.org> wrote:

> hi,
>
> i'm trying to keep process running after script kills xterm like this:
>
> #!/bin/bash
>
> firefox & disown -h $!
> kill -9 $PPID
>
> but when xterm terminates, firefox terminates too.
>
> what do I do wrong ?
>

try nohup firefox
or <&- firefox &
stdin may needs get closed , to not affect later when terminal closes
stdout and stderr maybe too
.. i just say .. try ..

>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]