Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!info.ucla.edu!nnrp.info.ucla.edu!news.ucdavis.edu!boris.ucdavis.edu!not-for-mail From: fzshenau@boris.ucdavis.edu (Gregory Shenaut) Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: ping script Followup-To: comp.unix.bsd.bsdi.misc Date: 3 Jul 1996 13:57:21 GMT Organization: University of California, Davis Lines: 13 Message-ID: <4rdu81$s29@mark.ucdavis.edu> References: <Pine.SOL.3.93.960702171209.4062B-100000@gold.acns.fsu.edu> NNTP-Posting-Host: boris.ucdavis.edu X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] Douglass E. Davis (davis@gold.acns.fsu.edu) wrote: : I am trying to make a script that will ping a computer every few minutes : and run a program if there is no answer. The kludge I use to detect "no answer" from ping in scripts is ping -c1 XXX 2>/dev/null | grep -q time= where XXX is the name of the remote system. -- Greg Shenaut -- gkshenaut@ucdavis.edu