2

So far, my code is as follows.

watch -n 1200 {
            ps -ef | grep firefox | grep -v grep | awk '{print $2}' | xargs kill
            xdg-open https://google.com
            xdotool key F11
            }

I want this to kill firefox if it's running, then relaunch a certain URL (with google as a placeholder) and place the browser in fullscreen.

What am I doing wrong?

2
  • 2
    I would start by simplifying to pkill firefox... what is going wrong with what you have?
    – Jeff Schaller
    Oct 25, 2018 at 21:41
  • 1
    What is happening that you are not expecting?
    – l0b0
    Oct 26, 2018 at 2:41

0

Browse other questions tagged or ask your own question.