'Stop running script but not programm it started

I have a script on my Raspberry Pi that starts the browser in kiosk mode. But if I do so the script keeps running even if i pipe the output to /dev/null like this ./script 2> /dev/null

If i stop the script with ctrl+c the browser gets killed as well. How can I run the script without having it to run in my terminal forever?



Solution 1:[1]

just add & at the end of the line.

also in the terminal you can do the same. but if you close it the process you started is killed even if you add & ,so you have to disown the process by adding & disown ,which you don't need in the script.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 yarob