[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ping
- To: linux-il(at-nospam)linux.org.il
- Subject: Re: ping
- From: Yotam Rubin <yotam(at-nospam)makif.omer.k12.il>
- Date: Wed, 30 May 2001 00:10:31 +0300
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <3B1497AE.3070401@zahav.net.il>; from tsnoam@zahav.net.il on Tue, May 29, 2001 at 11:48:14PM -0700
- Mail-Followup-To: linux-il@linux.org.il
- References: <3B1497AE.3070401@zahav.net.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.3.15i
ping does not natively make those 'deductions', be it is easy to write a
wrapper that does that for you. Something like:
case `ping -qc 5 $1` in
*'100% packet loss'*)
echo "Target host $1 does not respond to ICMP echo requests."
;;
*)
echo "Target host $1 responds to ICMP echo requests."
;;
esac
On Tue, May 29, 2001 at 11:48:14PM -0700!@?#?%?, Noam Meltzer wrote:
> Hi!
> I know that on Solaris the output of "ping" is "<host> is alive" or
> "service not avaiable" (or something like that)
> i was wandering how i can achieve such answer in linux.
>
> noam
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il