On Tuesday, February 2, 2021 at 7:51:12 PM UTC+8, Janis Papanagnou wrote:
> On 02.02.2021 03:08,
hongy...@gmail.com wrote:
> > On Ubuntu 20.04, I want to start Google Chrome in daemon mode which will survive terminal close and tried the following methods:
> >
> > 1. nohup google-chrome --no-startup-window >/dev/null 2>&1 &
> > 2. ( google-chrome --no-startup-window >/dev/null 2>&1 & )
> > 3. google-chrome --no-startup-window >/dev/null 2>&1 & disown
> > 4. setsid google-chrome --no-startup-window >/dev/null 2>&1 &
> > 5. screen -dm google-chrome --no-startup-window >/dev/null 2>&1 &
> >
> > It seems that all methods except 1 can do the trick.
> So avoid method 1 if it "does not work", "will not do the trick", etc.
> > Any hints for this problem?
> What problem? (You haven't told us of any existing problem.)
>
> General remarks...
>
> I used 3. in the past if I wanted to disown a background job *ex post*;