If I were doing this in bash, I would start with something like this: xx=`ping -c1 8.8.8.8 | sed -n '/ttl/s/^.*=\([0-9]*\).*$/\1/p'` ;if [ "$xx" != "" ] && [ "$xx" -lt "75" ]; then echo $xx;else echo mail; fi > -----Original Message----- > From: tclug-list-bounces at mn-linux.org [mailto:tclug-list-bounces at mn- > linux.org] On Behalf Of Raymond Norton > Sent: Monday, March 23, 2015 8:00 AM > To: tclug-list > Subject: [tclug-list] alert for long ping times > > I currently run an aggressive ping script that sends an email if specific hosts go > down. Is there a way to do the same; maybe even play a sound, when ping > times exceed 75ms? > > -- > Raymond Norton > LCTN > 952.955.7766 > > -- > Sent From My Desktop > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list