Then just
ping -c <how many you'd like>
and check the error code. if its non zero, then none of the packets
returned, else at least one packet returned. sound to me like the same
functionality.

Oded

--
Beauty unaware of itself is the most beautiful



----- Original Message -----
From: Noam Meltzer
To: guy keren
Cc: IGLU
Sent: Thursday, May 31, 2001 09:56
Subject: Re: ping


patching the original script sounds much more like what i need if i don't
find something else.
on the first look  it might seem like  ping -s on solaris is much better
than the default ping but thats not always the case.
lets assume that you need to get statistics on the status of the network.
statistics like, the host is up or down, just that no more than that. what
ping in solaris does is sending packets to a host until it responds or until
(i'm not sure) a certain time has been exceeded or X packets didn't return.
if one packet returns it's enough. in such cases the solaris' ping is much
more usefull and comfortable to use.


guy keren wrote:

On Thu, 31 May 2001, Noam Meltzer wrote:
Well guys thank you all... but that what i really didn't want... sctiptsi
can write my self.What i really wanted is to find out if you can get what
the ping binaryin solaris does not a scripts to emulate it.Is there such a
tool for linux?
a script _is_ a tool. what is the problem iwth writing this script
andinstalling it somewhere on the system? if yo want, you can turn this
intoa one-line perl script given to perl on the command line.there is no
difference between that and a binary program. btw, the way'ping' behaves on
linux by edfault is more useful then the way it does onsolaris (i.e. 'host
is alive'? that's much less useful then what 'ping -s'gives you on
solaris).btw, why do _you_ think the output on solaris is better then on
linux? forcustomer support via the phone? then tel the user to type 'ping -c
1' andread the output to you.--guy"For world domination - press 1, or dial
0, and please hold, for the creator." -- nob o.
dy=================================================================To
unsubscribe, send mail to [EMAIL PROTECTED] withthe word
"unsubscribe" in the message body, e.g., run the commandecho unsubscribe |
mail [EMAIL PROTECTED]


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to