Created
January 5, 2020 10:57
-
-
Save rsotnychenko/80d018e60c758508f68620b131944635 to your computer and use it in GitHub Desktop.
Check DFA.ie website for newly uploaded visa decision reports (draft)
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
#!/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