Created
July 6, 2017 19:23
-
-
Save michabbb/5bde94b40cc82dbc18f5ef1537601cd3 to your computer and use it in GitHub Desktop.
Monitor Website for string and send email IF NOT found (without local smtp)
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
if lynx --dump https://xxxxxxxxxxx |grep --quiet 'Something i am looking for' ; then | |
echo "Still there" | |
else | |
swaks --to xxxxxxxxxx@gmail.com --from "xxxxxxxxx@googlemail.com" --server smtp.gmail.com --auth PLAIN --auth-user "xxxxxxxxxx@googlemail.com" --auth-password "xxxxxxxxxxxxx" -tls -p 587 --h-Subject your-special-subject--body "your body" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you have problems with gmail, read this