Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How do I prevent a script from terminating when the shell exits? without wasting too much if your time.
The question is published on by Tutorial Guruji team.
In particular, I created a script to start Firefox which I double-click and choose ‘Run in terminal,’ but when the shell exits Firefox is killed immediately.
How do I prevent this from happening?
You need to put the nohup before the command that launch firefox, so it needs to looks like that:
>$ nohup firefox
We are here to answer your question about How do I prevent a script from terminating when the shell exits? - If you find the proper solution, please don't forgot to share this with your team members.