aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/domainsTest.sh
blob: 2b3151a2759c127b791c4a4cda9530d76c235c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# Program name: pingall.sh
date
cat domains.txt |  while read output
do
    ping -c 1 "$output" &> /dev/null
    if [ $? -eq 0 ]; then
    echo "node $output is up" 
    else
    echo "node $output is down"
    fi
done