How to create a loop in bash that is waiting for a webserver to respond?
It should print a \".\" every 10 seconds or so, and wait until the server starts to respond.
if you need check if the server is available, cause is restarting or something else, you could try to make an wget to the server and parse the response or the error, if you get a 200 or even a 404 the server is up, you could change the wget timeout with --timeout=seconds, You could set timeout to 10 second and make a loop until the grep over the response have a result.
i dont know if this is what you are searching or really you need the bash code.