first commit
This commit is contained in:
13
scripts/ping_test.sh
Normal file
13
scripts/ping_test.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
for host in $(cat $1)
|
||||
do
|
||||
|
||||
if ping -c 1 -w 5 $host &>/dev/null ; then
|
||||
|
||||
echo "$host is up"
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
Reference in New Issue
Block a user