Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michabbb/5bde94b40cc82dbc18f5ef1537601cd3 to your computer and use it in GitHub Desktop.
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)
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
@michabbb
Copy link
Author

michabbb commented Jul 6, 2017

if you have problems with gmail, read this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment