Search

Script to launch open a site repeatedly at regular intervals.

Here is a script which can be used to open a website at regular intervals and close the browser cleanly, repeatedly as long as you don't force close the script. This could be useful when you want to monitor something on a site or a wait for some news on a site and don't want to keep opening it manually.



If you do not want to use firefox, you can replace the firefox command with the command to launch the browser of your choice.
Save the above script as run_repeat.sh, and execute it.

The script will prompt you to enter the website and delay times

The script will keep launching firefox and opening the site http://google.com, wait for 30 seconds and close it and launch it again after a delay of 30 seconds.

No comments:

Post a Comment