Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 4977  / 3 Years ago, mon, november 1, 2021, 11:04:40

So I am well aware of nohup and suffixing commands with & to ensure that they go into the background.



However if I run a graphical application - sometimes using neither seems to do the job. So what can I prefix a program/command with to ensure that it keeps running after the terminal is closed?


More From » gnome

 Answers
5

If you want the application to keep running when you close the terminal window you should do:



nohup chromium-browser &


You need both the nohup and the &.




  • nohup means keep this process/command running after the shell closes.

  • & means put this process/command in the background so it dose not block the shell (so you can use it for something else.


[#40845] Wednesday, November 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gerrin

Total Points: 347
Total Questions: 109
Total Answers: 121

Location: Tanzania
Member since Fri, Oct 29, 2021
3 Years ago
gerrin questions
Sun, Sep 25, 22, 12:20, 2 Years ago
Sat, Sep 11, 21, 20:11, 3 Years ago
Tue, Jan 11, 22, 22:26, 2 Years ago
Thu, Oct 28, 21, 14:34, 3 Years ago
Sat, Mar 12, 22, 10:03, 2 Years ago
;