Skip to content

Instantly share code, notes, and snippets.

@rsayers
Created October 20, 2014 17:28
Show Gist options
  • Save rsayers/9e9bf48b5d68c13bb405 to your computer and use it in GitHub Desktop.
Save rsayers/9e9bf48b5d68c13bb405 to your computer and use it in GitHub Desktop.
Get emailed when text on a webpage changes
#!/bin/bash
X=0;
while [ $X -eq 0 ]
do
X=`curl "https://url.to/search" | grep "text to find" | wc -l `
sleep 60
done
echo "done" | mail "you@host.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment