* Re: ping on cygwin?
@ 2003-01-13 21:57 lhall
0 siblings, 0 replies; 8+ messages in thread
From: lhall @ 2003-01-13 21:57 UTC (permalink / raw)
To: tino.lange, lhall, cygwin
Sounds like you practiced due diligence. So my 'standard' speech
wasn't necessary. I do recommend that folks do mention the
steps they've taken to research the problem and solution themselves
when they post. It helps us here on the list to not recommend an
avenue which has already been investigated.
If you plan to contribute a package, the best list to be on for that
is cygwin-apps@cygwin.com. You have to subscribe to this list to
post there. But this is where package maintainers discuss issues
with their packages. I recommend joining this list if you plan to
maintain a Cygwin package. You can post questions you may have about
your imminent package there.
Thanks for your efforts so far!
Larry
Original Message:
-----------------
From: Tino Lange tino.lange@isg.de
Date: Mon, 13 Jan 2003 18:36:45 +0100
To: lhall@rfk.com, cygwin@cygwin.com
Subject: Re: ping on cygwin?
lhall@pop.ma.ultranet.com wrote:
Hi again!
> Again I have to direct you to the FAQ:
>
> Why isn't package XXXX available in Cygwin? (Or, why is your package so
> out of date?) <http://cygwin.com/faq/faq_4.html#SEC52>
Thanks! I read it once again and hence I like to (try to) contribute -
see below.
> it's very worthwhile to check the FAQ, email archives and other
> documentation for this kind of information before posting to the list.
I googled and searched for ping.exe since about 4 hours today.
I found some scripts in python and perl that might emulate a ping, found
someone proposing to wrap MS-ping and emulate the return values by
regexp the output and so on. Also I looked through various cygwin
systems and package lists to find the appropiate cygwin package.
I also searched UnxUtils and the GnuWin32 project and the MS site incl.
knowledgebase. All without success.
I learned a lot about raw icmp sockets and why only root is allowed to
open them - making ping a setuid program.
> It's generally a time-saver for everyone as well as a good habit
> and good information source. :-)
Larry, really I think I was quite prepared before asking the list. I
really didn't want to waste some of your time or to offend you by 'just
asking' - maybe I should have written more clearly that I already tried
to inform myself a a lot prior to asking.
I think 'ping' is a VERY essential tool and part of even every
mini-linux/unix, I didn't just ask for some package XXXX. 'ping' is one
of THE basic programs. It's even so essential that even MS makes a
'ping.exe' :-) So I thought and think that Cygwin must also provide a
ping - and if not, there must be a good reason.
That's why I finally asked the group - I thought that maybe I could also
save some precious time not searching further for hours or try to
compile sth. that isn't possible with cygwin (yet).
> The answer to your last question might even already be in the email
> archives (and maybe not but at least then you'll be pretty sure you're
> not covering ground the list has already discussed).
I googled a lot and didn't find something. The search engine on the
cygwin site gives internal server errors every second try, but the first
3 pages of results also didn't answer.
I also tried to compile by myself, but Lapo isn't right:
> AFAIK the "usual" ping.c compiles and works well on CygWin.
Unfortunately not. There are lot's of include (and mybe more) problems
that have to be solved
OK!
I'm willing to contribute and try to solve that. If noone here has some
other idea I think I found some missing program in the great
cygwin-world. I'll try to compile ping from
ftp://ftp.inr.ac.ru/ip-routing/iputils-current.tar.gz and I'll tel you
about my success or failure later.
(Just to make clear and not to annoy: Is it allowed according to the
mailing list regulations to ask the group for possible help while the
development of such new packages? Or isn't that list the right place?)
Thanks for your help again
and best regards
Tino
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ping on cygwin?
2003-01-13 18:29 ` Tino Lange
@ 2003-01-14 9:07 ` Sam Edge
0 siblings, 0 replies; 8+ messages in thread
From: Sam Edge @ 2003-01-14 9:07 UTC (permalink / raw)
To: cygwin
Tino Lange <tino.lange@isg.de> wrote in <3E22F92D.3040908@isg.de>
in gmane.os.cygwin on Mon, 13 Jan 2003 18:36:45 +0100:
> Thanks! I read it once again and hence I like to (try to) contribute -
> see below.
>
> I learned a lot about raw icmp sockets and why only root is allowed to
> open them - making ping a setuid program.
If you do write a better ping for Windows - whether native or Cygwin -
you can use raw sockets and construct your own ICMP datagrams but on
NT/2k/XP-Pro this will only run if you have elevated privileges, just
as on UNIX-like systems. Because there's no SUID feature available in
Windows or in Cygwin (yet!) this is something of a problem.
In case you're not aware, the Microsoft ping.exe and tracert.exe
programs use a system library called icmp.dll which provides system
calls that will send and receive ICMP Echo datagrams without needing
extra privileges. This might be useful for your version.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm/htm/_wcesdk_internet_control_message_protocol__icmp_.asp
(Don't worry that this is under the Windows CE section, by the way. It
applies to NT/2k/XP too.)
--
Sam Edge
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ping on cygwin?
2003-01-13 17:45 lhall
@ 2003-01-13 18:29 ` Tino Lange
2003-01-14 9:07 ` Sam Edge
0 siblings, 1 reply; 8+ messages in thread
From: Tino Lange @ 2003-01-13 18:29 UTC (permalink / raw)
To: lhall; +Cc: cygwin
lhall@pop.ma.ultranet.com wrote:
Hi again!
> Again I have to direct you to the FAQ:
>
> Why isn't package XXXX available in Cygwin? (Or, why is your package so
> out of date?) <http://cygwin.com/faq/faq_4.html#SEC52>
Thanks! I read it once again and hence I like to (try to) contribute -
see below.
> it's very worthwhile to check the FAQ, email archives and other
> documentation for this kind of information before posting to the list.
I googled and searched for ping.exe since about 4 hours today.
I found some scripts in python and perl that might emulate a ping, found
someone proposing to wrap MS-ping and emulate the return values by
regexp the output and so on. Also I looked through various cygwin
systems and package lists to find the appropiate cygwin package.
I also searched UnxUtils and the GnuWin32 project and the MS site incl.
knowledgebase. All without success.
I learned a lot about raw icmp sockets and why only root is allowed to
open them - making ping a setuid program.
> It's generally a time-saver for everyone as well as a good habit
> and good information source. :-)
Larry, really I think I was quite prepared before asking the list. I
really didn't want to waste some of your time or to offend you by 'just
asking' - maybe I should have written more clearly that I already tried
to inform myself a a lot prior to asking.
I think 'ping' is a VERY essential tool and part of even every
mini-linux/unix, I didn't just ask for some package XXXX. 'ping' is one
of THE basic programs. It's even so essential that even MS makes a
'ping.exe' :-) So I thought and think that Cygwin must also provide a
ping - and if not, there must be a good reason.
That's why I finally asked the group - I thought that maybe I could also
save some precious time not searching further for hours or try to
compile sth. that isn't possible with cygwin (yet).
> The answer to your last question might even already be in the email
> archives (and maybe not but at least then you'll be pretty sure you're
> not covering ground the list has already discussed).
I googled a lot and didn't find something. The search engine on the
cygwin site gives internal server errors every second try, but the first
3 pages of results also didn't answer.
I also tried to compile by myself, but Lapo isn't right:
> AFAIK the "usual" ping.c compiles and works well on CygWin.
Unfortunately not. There are lot's of include (and mybe more) problems
that have to be solved
OK!
I'm willing to contribute and try to solve that. If noone here has some
other idea I think I found some missing program in the great
cygwin-world. I'll try to compile ping from
ftp://ftp.inr.ac.ru/ip-routing/iputils-current.tar.gz and I'll tel you
about my success or failure later.
(Just to make clear and not to annoy: Is it allowed according to the
mailing list regulations to ask the group for possible help while the
development of such new packages? Or isn't that list the right place?)
Thanks for your help again
and best regards
Tino
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ping on cygwin?
@ 2003-01-13 17:45 lhall
2003-01-13 18:29 ` Tino Lange
0 siblings, 1 reply; 8+ messages in thread
From: lhall @ 2003-01-13 17:45 UTC (permalink / raw)
To: tino.lange, cygwin, lhall
Again I have to direct you to the FAQ:
Why isn't package XXXX available in Cygwin? (Or, why is your package so
out of date?)
<http://cygwin.com/faq/faq_4.html#SEC52>
This is the most likely answer as to *why* there is no /bin/ping already.
Generally, there is no mystery surrounding these kinds of questions and
it's very worthwhile to check the FAQ, email archives and other
documentation
for this kind of information before posting to the list. It's generally
a time-saver for everyone as well as a good habit and good information
source. :-)
The answer to your last question might even already be in the email
archives (and maybe not but at least then you'll be pretty sure you're
not covering ground the list has already discussed).
Larry
Original Message:
-----------------
From: Tino Lange tino.lange@isg.de
Date: Mon, 13 Jan 2003 17:13:59 +0100
To: cygwin@cygwin.com, lhall@rfk.com
Subject: Re: ping on cygwin?
Hi Larry!
>> I found that the Windows %SYSTEM32/ping.exe does not provide return
>> codes and has some other drawbacks.
>>
>> Looking hard I couldn't locate a /bin/ping in the cygwin distribution.
>> Didn't I look enough? Or is it really not there? Why?
>>
>> Maybe you know some other (besides cygwin and MS builtin) 'ping.exe'
>> that is scriptable with proper return values - like the unix ones?!
> See the FAQ entry:
>
> What packages should I download?
> http://cygwin.com/faq/faq_2.html#SEC13
>
> This will direct you to http://cygwin.com/packages/ which can be used
> for the general inquiry of 'Is XXX utility/file part of a Cygwin package?'
Using these links you sent to me and the search engine on the packages
page also supported my statement that 'ping' unfortunately doesn't seem
to be part of any cygwin package, just as I already thought.
So my two other questions are of relevance and seem to be reasonable:
Why? (Serious problems? Problems using raw sockets as non-Administrator?
If not, maybe I can help porting this tool?)
and/or
Maybe one of the readers here knows some other 'ping.exe' that is
suitable for scripting? The MS one isn't :-(
Thanks for your answer!
Tino
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ping on cygwin?
2003-01-13 17:21 ` Tino Lange
@ 2003-01-13 17:29 ` Lapo Luchini
0 siblings, 0 replies; 8+ messages in thread
From: Lapo Luchini @ 2003-01-13 17:29 UTC (permalink / raw)
To: CygWin
Tino Lange wrote:
> Why? (Serious problems? Problems using raw sockets as
> non-Administrator? If not, maybe I can help porting this tool?)
> Maybe one of the readers here knows some other 'ping.exe' that is
> suitable for scripting? The MS one isn't :-(
AFAIK the "usual" ping.c compiles and works well on CygWin.
A package needs not only to "work" to "exist", it also needs a "package
mantainer", on CygWni.
> Thanks for your answer!
you're welcome.
Lapo
--
Lapo 'Raist' Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ping on cygwin?
2003-01-13 17:13 lhall
@ 2003-01-13 17:21 ` Tino Lange
2003-01-13 17:29 ` Lapo Luchini
0 siblings, 1 reply; 8+ messages in thread
From: Tino Lange @ 2003-01-13 17:21 UTC (permalink / raw)
To: cygwin; +Cc: lhall
Hi Larry!
>> I found that the Windows %SYSTEM32/ping.exe does not provide return
>> codes and has some other drawbacks.
>>
>> Looking hard I couldn't locate a /bin/ping in the cygwin distribution.
>> Didn't I look enough? Or is it really not there? Why?
>>
>> Maybe you know some other (besides cygwin and MS builtin) 'ping.exe'
>> that is scriptable with proper return values - like the unix ones?!
> See the FAQ entry:
>
> What packages should I download?
> http://cygwin.com/faq/faq_2.html#SEC13
>
> This will direct you to http://cygwin.com/packages/ which can be used
> for the general inquiry of 'Is XXX utility/file part of a Cygwin package?'
Using these links you sent to me and the search engine on the packages
page also supported my statement that 'ping' unfortunately doesn't seem
to be part of any cygwin package, just as I already thought.
So my two other questions are of relevance and seem to be reasonable:
Why? (Serious problems? Problems using raw sockets as non-Administrator?
If not, maybe I can help porting this tool?)
and/or
Maybe one of the readers here knows some other 'ping.exe' that is
suitable for scripting? The MS one isn't :-(
Thanks for your answer!
Tino
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: ping on cygwin?
@ 2003-01-13 17:13 lhall
2003-01-13 17:21 ` Tino Lange
0 siblings, 1 reply; 8+ messages in thread
From: lhall @ 2003-01-13 17:13 UTC (permalink / raw)
To: tino.lange, cygwin
See the FAQ entry:
What packages should I download?
http://cygwin.com/faq/faq_2.html#SEC13
This will direct you to http://cygwin.com/packages/ which can be used
for the general inquiry of 'Is XXX utility/file part of a Cygwin package?'
Larry
Original Message:
-----------------
From: Tino Lange tino.lange@isg.de
Date: Mon, 13 Jan 2003 16:48:28 +0100
To: cygwin@cygwin.com
Subject: ping on cygwin?
Hi!
I found that the Windows %SYSTEM32/ping.exe does not provide return
codes and has some other drawbacks.
Looking hard I couldn't locate a /bin/ping in the cygwin distribution.
Didn't I look enough? Or is it really not there? Why?
Maybe you know some other (besides cygwin and MS builtin) 'ping.exe'
that is scriptable with proper return values - like the unix ones?!
Thanks a lot!
Tino
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
* ping on cygwin?
@ 2003-01-13 17:01 Tino Lange
0 siblings, 0 replies; 8+ messages in thread
From: Tino Lange @ 2003-01-13 17:01 UTC (permalink / raw)
To: cygwin
Hi!
I found that the Windows %SYSTEM32/ping.exe does not provide return
codes and has some other drawbacks.
Looking hard I couldn't locate a /bin/ping in the cygwin distribution.
Didn't I look enough? Or is it really not there? Why?
Maybe you know some other (besides cygwin and MS builtin) 'ping.exe'
that is scriptable with proper return values - like the unix ones?!
Thanks a lot!
Tino
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-01-14 7:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13 21:57 ping on cygwin? lhall
-- strict thread matches above, loose matches on Subject: below --
2003-01-13 17:45 lhall
2003-01-13 18:29 ` Tino Lange
2003-01-14 9:07 ` Sam Edge
2003-01-13 17:13 lhall
2003-01-13 17:21 ` Tino Lange
2003-01-13 17:29 ` Lapo Luchini
2003-01-13 17:01 Tino Lange
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).