Skip to content

Instantly share code, notes, and snippets.

@p0z
p0z / wait_for_http_200.sh
Last active February 23, 2023 21:36 — forked from eisenreich/wait_for_http_200.sh
Wait for HTTP endpoints to return 200 OK with bash, curl and timeout
#/bin/bash
##############################################################################################
# Wait for URLs until return HTTP 200
#
# - Just pass as many urls as required to the script - the script will wait for each, one by one
#
# Example: ./wait_for_urls.sh "${MY_VARIABLE}" "http://192.168.56.101:8080"
##############################################################################################