A Script to run a program based on the state of a website
Posted on 2011-02-21
Platform Windows XP, - 7:
Scripting language, I'm open to suggestions, but was thinking about using Windows Power Shell
Need a script that basically checks the state of a website on the internet. It will be running all the time in the background, checking every 15 minutes or so. If the site is up, then I want it to run openvpn and create a tunnel to a ip address defined in the openvpn config.
If the website is down, terminate the tunnel.
New to scripting, thanks in advance.
If you can recommend any good beginner books on Windows Powershell that would be a plus.