Skip to content

Instantly share code, notes, and snippets.

@parstra
Created January 13, 2014 16:00
Show Gist options
  • Save parstra/8402774 to your computer and use it in GitHub Desktop.
Save parstra/8402774 to your computer and use it in GitHub Desktop.
#!/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
@parstra
Copy link
Author

parstra commented Jan 13, 2014

config file example

asg=666&asm=666666&klash=6666&lastname=Έξιέξιέξι&firstname=Έξιέξι&yearofbirth=666&mode=katataxi

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