*BSD News Article 73867


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!garlic.com!news.scruz.net!kithrup.com!news.Stanford.EDU!bloom-beacon.mit.edu!news.mathworks.com!uunet!in2.uu.net!01-newsfeed.univie.ac.at!uw.edu.pl!news.nask.pl!sunrise.pg.gda.pl!delta.ds2.pg.gda.pl!alan
From: Alan Ghafour <alan@delta.ds2.pg.gda.pl>
Newsgroups: comp.sys.sun.admin,alt.sys.sun,comp.unix.bsd.misc,comp.unix.programmer,comp.unix.bsd.bsdi.misc,comp.unix.admin
Subject: Re: ping script
Date: Mon, 15 Jul 1996 21:36:47 +0200
Organization: Politechnika Gdanska
Lines: 23
Message-ID: <Pine.GSO.3.93.960715213545.21927D-100000@delta.ds2.pg.gda.pl>
References: <Pine.SOL.3.93.960702171209.4062B-100000@gold.acns.fsu.edu> <31DA8A95.61BB@hybrid.com> <4rjo9o$gn@anorak.coverform.lan>
NNTP-Posting-Host: delta.ds2.pg.gda.pl
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
In-Reply-To: <4rjo9o$gn@anorak.coverform.lan>
Xref: euryale.cc.adfa.oz.au comp.sys.sun.admin:70565 alt.sys.sun:10409 comp.unix.bsd.misc:1249 comp.unix.programmer:39622 comp.unix.bsd.bsdi.misc:4316 comp.unix.admin:44903

On 5 Jul 1996, Brian Somers wrote:

> 
> : Use two pings just because of routing issues, the 
> : first ping may get an error.  The second ping will 
> : verify that the node is really missing.
> 
> Despite the return code on FreeBSD being correct, historically, it is not
> guaranteed.  If you want to write a portable script, don't do it this way.
> 
> --
> Brian <brian@awfulhak.demon.co.uk>
> Don't _EVER_ lose your sense of humour....
For example old Linux - 2.0.3 always returns 0 as exit code.

+-------------------------[ ALAN GHAFOUR ]-----------------------------+
|\  aghafour@pg.gda.pl   <--\ Student of Technical University of Gdansk \ 
+ \    alan@ds2.pg.gda.pl    \        Faculity of Electronics            \
 \ \ alan@netra.sprint.com.pl \---- preferred address for e-mail          \
  \ +----------------------------------------------------------------------+
   \|  Sprint-Net Network Administrator http://netra.sprint.com.pl/~alan   |
    +----------------------------------------------------------------------+