Created
June 25, 2015 18:15
-
-
Save Ashex/ce7a8d8f975f810e1760 to your computer and use it in GitHub Desktop.
Check if German Visa is ready
This file contains hidden or 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 | |
check=`curl -s --data "zapnummer=$1&pbAbfragen=Auskunft" https://www10.muenchen.de/EATWebSearch/Auskunft` | |
if echo $check | egrep -q "liegt noch nicht zur Abholung bereit" ; then | |
logger -s "Blue Card for $2 is Not Ready yet" | |
elif echo $check | egrep -q "green" ; then | |
/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier -title "Blue Card" -subtitle "Check Status" -message "The Blue Card for $2 is ready!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment