Advertisement
joaomps

Untitled

Nov 12th, 2015
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while true
  4. do
  5. for ((z=1;z<=60;z++))
  6. do
  7. if pgrep "firefox" > /dev/null
  8. then
  9. echo "firefox is running"
  10. else
  11. echo "restarting firefox"
  12. firefox
  13. fi
  14. sleep 60
  15. done
  16. pkill firefox
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement