adding nummer5 tools

This commit is contained in:
2022-09-14 19:41:27 +02:00
parent 8cc8efd81b
commit 31274f3825
3 changed files with 20 additions and 0 deletions

9
nummer5/nummer5-hosts-alive.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
. hosts.conf
for host in $hosts; do
if ping -c 1 -W 1 "$host" >/dev/null; then
echo "$host is alive"
else
echo "$host is pining for the fjords"
fi
done