Created
March 6, 2020 14:53
-
-
Save cdimascio/6c300aaa888518a801bf3e0e938f8782 to your computer and use it in GitHub Desktop.
bash_poll_http_200
This file contains hidden or 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
timeout 300 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9000)" != "200" ]]; do sleep 5; done' || false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment