Skip to content

Instantly share code, notes, and snippets.

@rsotnychenko
Created January 5, 2020 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsotnychenko/80d018e60c758508f68620b131944635 to your computer and use it in GitHub Desktop.
Save rsotnychenko/80d018e60c758508f68620b131944635 to your computer and use it in GitHub Desktop.
Check DFA.ie website for newly uploaded visa decision reports (draft)
#!/bin/bash
OLD_CHECKSUM="f336aacdfaa299fe4f6494e327ab1671"
CURRENT_CHECKSUM="$OLD_CHECKSUM"
while [ "$OLD_CHECKSUM" == "$CURRENT_CHECKSUM" ]; do
echo "OLD: $OLD_CHECKSUM"
echo "NEW: $CURRENT_CHECKSUM"
sleep 180
CURRENT_CHECKSUM="$(curl https://www.dfa.ie/irish-embassy/russia/visas/weekly-decision-report/ | grep "2019decisionreports" | md5sum | cut -d ' ' -f1)"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment