Created
September 14, 2016 11:05
-
-
Save tomfa/0f0f7b74a4a24fa73beb2df90fcc5d7d to your computer and use it in GitHub Desktop.
Autorelad webpage every 5 min (Debian)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install xdotool | |
sudo apt-get install iceweasel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# open build screen url in firefox | |
iceweasel http://<your url> | |
# Allow 15 seconds to load | |
sleep 15; | |
# Clicks Enter to log in (autofill) | |
xdotool key KP_Enter | |
# Click F11 to maximize screen | |
xdotool key F11 | |
# Loop reload every 5 minutes | |
while true; sleep 300; xdotool key ctrl+r; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Article at http://notes.webutvikling.org/build-screen-bootup/