[patch] Option to ping(8) to return 0 after receiving first echo-reply

2006-06-23 Thread Nickolay A Burkov
Hi, @misc! Here is a very simply hack to ping. It isn't pretend to something, hope it will be useful for anybody as endless host checking in scripts. % ping -Q example.com echo 'abc' /dev/speaker # etc.. Index: ping.8 === RCS

Re: [patch] Option to ping(8) to return 0 after receiving first echo-reply

2006-06-23 Thread Berk D. Demir
Nickolay A Burkov wrote: Hi, @misc! Here is a very simply hack to ping. It isn't pretend to something, hope it will be useful for anybody as endless host checking in scripts. % ping -Q example.com echo 'abc' /dev/speaker # etc.. what is wrong with ping -q -c 1 example.com

Re: [patch] Option to ping(8) to return 0 after receiving first echo-reply

2006-06-23 Thread Matthias Kilian
On Fri, Jun 23, 2006 at 06:45:51PM +, Nickolay A Burkov wrote: Here is a very simply hack to ping. It isn't pretend to something, hope it will be useful for anybody as endless host checking in scripts. % ping -Q example.com echo 'abc' /dev/speaker # etc.. Doesn't $ ping -c 1

Re: [patch] Option to ping(8) to return 0 after receiving first echo-reply

2006-06-23 Thread Adam
Matthias Kilian [EMAIL PROTECTED] wrote: Doesn't $ ping -c 1 example.com do what you want? No, that's not even similar. Berk D. Demir [EMAIL PROTECTED] wrote: what is wrong with ping -q -c 1 example.com /dev/null ? Is this a joke or is it week of utterly useless patches ?

Re: [patch] Option to ping(8) to return 0 after receiving first echo-reply

2006-06-23 Thread Adam
On Fri, 23 Jun 2006 19:33:53 +0200 Matthias Kilian [EMAIL PROTECTED] wrote: What's wrong with your example is that it doesn't do anything even resembling what he wants. Sending a single echo request is not the same as sending echo requests for as long as it takes to get a response, and

Re: [patch] Option to ping(8) to return 0 after receiving first echo-reply

2006-06-23 Thread Matthias Kilian
What's wrong with your example is that it doesn't do anything even resembling what he wants. Sending a single echo request is not the same as sending echo requests for as long as it takes to get a response, and then exiting successfully. He even gave you an example of how one would use this

Re: [patch] Option to ping(8) to return 0 after receiving first echo-reply

2006-06-23 Thread Berk D. Demir
i What's wrong with your example is that it doesn't do anything even resembling what he wants. Sending a single echo request is not the same as sending echo requests for as long as it takes to get a response, and then exiting successfully. He even gave you an example of how one would use