ping script

From: Dave McDonald (unix_man@sympatico.ca)
Date: Thu Jul 25 2002 - 10:33:42 EDT


I have a script that will ping a device and displays all the stats.

64 bytes from host (1.1.1.1): icmp_seq=0. time=0. ms
64 bytes from host (10..1.1.1): icmp_seq=1. time=0. ms
^C

How can I send only 3 pings or how can I implement a ^C into the script so it
will display the results and move on to the next test in the same script?

When I look for a count in the ping that came with Solaris 8, there isn't one.
Thanks
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:39 EDT