[HPADM] ping script

From: Dave McDonald (unix_man@sympatico.ca)
Date: Thu Jul 25 2002 - 09:49:20 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?

Thanks

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:16 EDT