#!/bin/ksh #Ping every host on the local area network. #Output the IP address of each one that responds. for ip in `~mm64/public_html/INFO1-CE9545/src/hosts | awk '{print $1}'` do if /usr/sbin/ping $ip > /dev/null then echo $ip fi & #ampersand for background process done wait #until all the pings are done exit 0