diff --git a/local/bin/whoisthere b/local/bin/whoisthere new file mode 100755 index 0000000..b72da69 --- /dev/null +++ b/local/bin/whoisthere @@ -0,0 +1,6 @@ +#!/bin/sh + +cat /data/random/ips | while read name host ip; do + ping -c1 -w1 "$ip" > /dev/null && echo "$name" +done +