Skip to content

Instantly share code, notes, and snippets.

@reevik
Created August 8, 2023 14:45
Show Gist options
  • Save reevik/2af026b2d2283bce3b7d2dd913f96a20 to your computer and use it in GitHub Desktop.
Save reevik/2af026b2d2283bce3b7d2dd913f96a20 to your computer and use it in GitHub Desktop.
#!/bin/bash
moshtel_web="https://camper-park-wacken.de"
md5=`curl -s -X GET $moshtel_web | md5sum | awk -F' ' '{print $1}'`
if [ ! -e /var/tmp/$md5 ]
then
osascript -e 'display notification "You should check out: '$moshtel_web'" with title "Moshtel Alarm"'
fi
touch /var/tmp/$md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment