You can always take the ping source and modify it to your own needs. no
big deal.
Dani

On Thu, 31 May 2001, Noam Meltzer wrote:

> Well guys thank you all... but that what i really didn't want... sctipts
> i can write my self.
> What i really wanted is to find out if you can get what the ping binary
> in solaris does not a scripts to emulate it.
> Is there such a tool for linux?
> 
> Noam
> 
> rcs wrote:
> 
>  > Ooops!
>  > and
>  > if [ $# != 2 ]...
>  > should be
>  > if [ $# != 1 ]
>  >
>  > Sorry, it's been a long long day. here's the new code:
>  >
>  > #!/bin/sh
>  > if [ $# != 1 ]; then echo "usage: $0 <host>"; exit; fi
>  > ping -c 1 $1 >/dev/null 2>&1
>  > if [ $? == 0 ]
>  > then
>  >  echo $1 is alive
>  > else
>  >  echo $1 is not answering (to ICMP echo-request)
>  > fi
>  >
>  > Oleg Goldshmidt <[EMAIL PROTECTED]> wrote:
>  >
>  >> rcs <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED]
>  >> If it aint't broken it hasn't got enough features yet.
>  >
> 
> 
> 
> =================================================================
> 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]
> 


=================================================================
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