simple ping test script

Here is a simple ping script. You privide the server-file and the program will output all the server thta do not respond to the ping request

#!/bin/bash

for i in $(cat server-file); do

ping -c 1 $i > /dev/null 2>&1
if [ $? = 1 ]; then
echo $i did not ping
fi

done