#!/bin/sh
hosts='hosts-to-ping.txt';
for ip in $(cat $hosts); do ping -c 2 $(./fqdnfinder.py $ip); done
# for i in $(cat down_hosts.txt); do ping -c 1 $i; done|grep -i icmp_seq
