Skip to content

Instantly share code, notes, and snippets.

@ohlol
Forked from collinvandyck/delaysquawk.go
Last active December 19, 2015 10:09
Show Gist options
  • Save ohlol/5938730 to your computer and use it in GitHub Desktop.
Save ohlol/5938730 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# requires httpie
while /bin/true
do
http --timeout 1 HEAD http://ocean.collinvandyck.com > /dev/null 2>&1
case "$?"
2)
/usr/bin/say -v cello lag lag lag
;;
1)
/usr/bin/say -v cello ack error
;;
default)
;;
esac
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment