[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ping
- To: rcs <rasta(at-nospam)RSHELL.ORG>
- Subject: Re: ping
- From: Oleg Goldshmidt <ogoldshmidt(at-nospam)computer.org>
- Date: 30 May 2001 00:47:46 -0400
- Cc: IGLU <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: rcs's message of "Wed, 30 May 2001 00:21:35 +0300"
- Organization: Speaking for myself only.
- Original-Sender: ogoldshmidt@computer.org
- References: <3B1497AE.3070401@zahav.net.il> <20010530002135.A2925@rshell.org>
- Reply-To: ogoldshmidt(at-nospam)computer.org
- Sender: ogoldshmidt(at-nospam)computer.org
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)
rcs <rasta@RSHELL.ORG> writes:
> #!/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
$0 should be $1, shouldn't it?
--
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org
If it aint't broken it hasn't got enough features yet.
=================================================================
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