Created
January 13, 2014 16:00
-
-
Save parstra/8402774 to your computer and use it in GitHub Desktop.
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 | |
MD5_OLD=_$(md5sum 'path_to_temp_output' | cut -d ' ' -f 1) | |
curl -X POST -d @/path/to/config/file 'http://www.stratologia.gr/proepiskophsh_stoixoivn' | grep -A 3 enhmKatataxisDiv > path_to_temp_output | |
MD5_NEW=_$(md5sum 'path_to_temp_output' | cut -d ' ' -f 1) | |
if [ "$MD5_OLD" != "$MD5_NEW" ] | |
then | |
cat path_to_temp_output | mail -s 'ARMY update' the_email | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
config file example
asg=666&asm=666666&klash=6666&lastname=Έξιέξιέξι&firstname=Έξιέξι&yearofbirth=666&mode=katataxi