Come creare un loop in bash che aspetta che un server web risponda?
Dovrebbe stampare un "." ogni 10 secondi circa e attendere che il server inizi a rispondere.
Aggiornamento, questo codice verifica se ottengo una buona risposta dal server.
if curl --output / dev / null --silent --head --fail "$ url"; poi echo "URL esistente: $ url" altro echo "L'URL non esiste: $ url" fi