Skip to content

Instantly share code, notes, and snippets.

View bobspryn's full-sized avatar
🌴
On vacation

Bob Spryn bobspryn

🌴
On vacation
View GitHub Profile
@bobspryn
bobspryn / gist:5230835
Last active December 15, 2015 08:29 — forked from Christopher-A/gist:2033205
Updated version makes sure the response code is 200. Also saves any possible false alarms to a file so we can evaluate how to fix those.
#!/bin/bash
api_key="your Prowl API key goes here"
cd ~
testSiteForChanges () {
ls "old_page.html" 1>/dev/null 2>/dev/null
if [ $? -eq "1" ] ; then