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
Oleg Goldshmidt <[EMAIL PROTECTED]> wrote:
> rcs <[EMAIL PROTECTED]> writes:
>
> > #!/bin/sh
> > if [ $# != 2 ]; then echo "usage: $0 "; 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 shoul
Since I got these details only today (Wednesday) and in view of the fact that
you might overlook the Reply message to my original announcement on IGLU front
page, I am posting this to the list too.
>
> >From Mike Kemelmakher about this week's lecture:
>
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 "; 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
rcs <[EMAIL PROTECTED]> writes:
> #!/bin/sh
> if [ $# != 2 ]; then echo "usage: $0 "; 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 i
#!/bin/sh
if [ $# != 2 ]; then echo "usage: $0 "; 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 <[EMAIL PROTECTED]> wrote:
> Hi!
> I know that on Solaris the output of "ping" is " is alive" or
> "service not av
At 09:35 29/05/01 +0300, you wrote:
>Usually I don't used to respond to my own messages, but...
>
>I wrote:
>
> > Eran Levy wrote:
> >
> > > Just wanted to notice. You can download Mandrake 2.4.4 kernel from:
> > >
>
>ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake-devel/cooker/cooker/Mand
Hi!
I know that on Solaris the output of "ping" is " 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 [EMAIL PROTECTED] with
t
Tzafrir Cohen wrote:
[...]
> BTW: The only other free X server for win32 is XFree, when compiled with
> cygwin: http://sources.redhat.com/cygwin/xfree/ IIRC. Installation is not
> exactly trivial, though (from what I heard. I haven't tried it yet)
Tzafrir,
Installation of Cygwin/Xfree86 *used* t
Anyone can point me to a Linux RADIUS server which can talk to MS SQL ?
Best Regards,
Evgeny Popov
Comsec Publicom ltd.
=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run th
I had the same thing with bezeqint on ISDN.
Everything went well until they installed a POP proxy (MiraPoint). I
know that Internet Gold uses the same equipment and have the same problems
with few of their customers.
Fortunately, I have overcome this
I have run the 2.4.4 kernel and runs flawlessly.
As for what you stated on XFS, true, but it you don't use XFS,
then you wouldn't need any of the XFS tools, as with many other kernel
features.
For example: How many people install ipchains, or ipvsadm
Hi Eli,
You can read an overview about the Cooker version at:
http://www.mandrakesoft.com/labs/cooker
This will give you all the information you need (I hope) :)
At 08:33 29/05/01 +0300, you wrote:
>Eran Levy wrote:
>
> > Just wanted to notice. You can download Mandrake 2.4.4 kernel from:
> >
>
On Tue, 29 May 2001, Eli Marmor wrote:
> Eran Levy wrote:
>
> > Just wanted to notice. You can download Mandrake 2.4.4 kernel from:
> >
>ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake-devel/cooker/cooker/Mandrake/RPMS/
> > if you havent downloaded it yet :)
>
> Thank you.
>
> I knew that
Hi,
It's look like you got your "table" parameter worng.
it shuold include only /dev/hda and not /dev/hda1
so your windows part on the lilo.conf have to look like the following:
other=/dev/hda1 #(or where ever your windows partiotion is. can be check
with fdisk -l /dev/hda)
lable=Windows
tables
Usually I don't used to respond to my own messages, but...
I wrote:
> Eran Levy wrote:
>
> > Just wanted to notice. You can download Mandrake 2.4.4 kernel from:
> >
>ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake-devel/cooker/cooker/Mandrake/RPMS/
> > if you havent downloaded it yet :)
Tzafrir Cohen wrote:
> > What I care is its dependency on the other parts of Cooker, i.e. can it be
> > installed under Mandrake 8.0?
>
> This is a kernel. What can it depend on?
Wow. Zillion things...
One example:
In one of the last Cookers (I don't know if the latest too), I saw
an XFS
17 matches
Mail list logo