I'm trying to write a bash script on Raspbian that will open a video URL in fullscreen, wait 2 minutes, then close the window #!/bin/bash chromium-browser <url> --start-fullscreen sleep 120 pkill chromium However, the code won't kill the chromium window.