title: How to create a loop in bash that is waiting for a webserver to respond?
body: <p>How to create a loop in bash that is waiting for a webserver to respond?</p>
  
  <p>It should print a "." every 10 seconds or so, and wait until the server starts to respond.</p>
  
  <p>Update, this code tests if I get a good response from the server.</p>
  
  <pre>
  if curl --output /dev/null --silent --head --fail "$url"; then
    echo "URL exists: $url"
  else
    echo "URL does not exist: $url"
  fi
  </pre>