I've got an issue with my simple command line :
chromium-browser www.youtube.com -start-fullscreen; sleep 1m; pkill --oldest chromium
As you figured out, I would like to launch Chromium with
chromium-browser www.youtube.com -start-fullscreen (tried it alone and it worked)
Then wait 1Minute with :
And then close my browser with
pkill --oldest chromium (Also tried it alone and it worked). All that from the terminal.
Unfortunately my script doesn't work. It does launch my chromium on
www.youtube.com but it doesn't close it after one minute.
I believe this can be from the fact that when the browser is launched, the terminal only listen to the software and is not able to execute any more commands, correct ?
So, how can I launch this script so that it would past the browser launch ?
Thanks in advance