[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ping
- To: IGLU <linux-il(at-nospam)linux.org.il>
- Subject: Re: ping
- From: rcs <rasta(at-nospam)RSHELL.ORG>
- Date: Wed, 30 May 2001 00:21:35 +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: IGLU <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.2.5i
#!/bin/sh
if [ $# != 2 ]; then echo "usage: $0 <host>"; exit; fi
ping -c 1 $1
if [ $? == 0 ]
then
echo $0 is alive.
else
echo $0 is not answering (to ICMP echo-request).
fi
Noam Meltzer <tsnoam@zahav.net.il> 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
--
http://www.rshell.org
Join #shellcode on EFnet.
rasta@rshell.org
=================================================================
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