Skip to content

Instantly share code, notes, and snippets.

@jenkoian
Created September 22, 2016 10:48
Show Gist options
  • Save jenkoian/4ed2f45062e934de79fc9d5bd2363a69 to your computer and use it in GitHub Desktop.
Save jenkoian/4ed2f45062e934de79fc9d5bd2363a69 to your computer and use it in GitHub Desktop.
Is it done yet?
status=$(curl -L -s -o /dev/null -w "%{http_code}" "http://url/to/check");
if [ "200" == "${status}" ]; then say -v "Good News" "ALL DONE YO!"; elif [ "502" == "${status}" ]; then say -v Whisper "Still Fucked"; else say -v "Bad News" "Not yet"; fi;
@jenkoian
Copy link
Author

brew install watch
watch -cn1 ./done-yet.sh

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