shell bash to check if a web app is up and running