You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
376 B

4 months ago
4 months ago
4 months ago
  1. #!/bin/bash
  2. [ $# -ne 1 ] && echo "domain name required! ie: listes.virkingraid.org" && exit 1
  3. LIST=$1
  4. TIMEOUT=30
  5. if (curl -m $TIMEOUT -Is "https://$LIST/wws" | grep -q "200 OK"); then
  6. echo -e "\e[38;5;240mmonit-sympa\e[0m $LIST \e[38;5;240m... \e[0;32mYES\e[0m"
  7. else
  8. echo -e "\e[38;5;240mmonit-sympa\e[0m $LIST \e[38;5;240m... \e[0;31mNO\e[0m"
  9. echo "$LIST" >>.errors
  10. fi