Files
Bash_Scrips/scripts/ping_test.sh
2025-06-23 21:19:51 +02:00

14 lines
120 B
Bash

#!/bin/bash
for host in $(cat $1)
do
if ping -c 1 -w 5 $host &>/dev/null ; then
echo "$host is up"
fi
done