Home > other >  Stop running script but not programm it started
Stop running script but not programm it started

Time:03-09

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?

CodePudding user response:

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.

  • Related