diff options
Diffstat (limited to 'scripts/.scripts')
-rwxr-xr-x | scripts/.scripts/domainsTest.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/.scripts/domainsTest.sh b/scripts/.scripts/domainsTest.sh new file mode 100755 index 0000000..2b3151a --- /dev/null +++ b/scripts/.scripts/domainsTest.sh @@ -0,0 +1,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 |