Skip to main content

Script to check all domain

Comments

2 comments

  • dalem
    Something like this (if you want the output to print to a file just a add > filename while calling the script Proabaly be improved but created this real quick #!/bin/bash mkdir /home/activedomains cd /home/activedomains cat /etc/userdomains | cut -d ':' -f 1 | awk '{ print $1}'> /home/activedomains/activedomains.txt for i in `cat /home/activedomains/activedomains.txt` do echo $i ; curl --connect-timeout 3 --write-out "%{http_code}\n" --silent --output /dev/null ${i} done
    0
  • cPanelLauren
    Thank you @dalem @mesranet let us know if this helped you resolve your issue.
    0

Please sign in to leave a comment.