delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,EXECUTABLE_URI,FREEMAIL_FROM,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
X-EIP: | [fD49hE+lXT6bVgmlIDu3MEwUjhas1Its] |
Message-ID: | <BLU0-SMTP207B7CE0436C8D86F27340ACE210@phx.gbl> |
Date: | Thu, 3 Jan 2013 18:21:10 +0100 |
From: | Aaron Schneider <notstop2 AT users DOT sourceforge DOT net> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Conflated ping issues |
References: | <CA+RBt1nCqr0PBmCS21wBpCEHB_CDF8cJt4z_0oXV8n+Qqswu5A AT mail DOT gmail DOT com> |
In-Reply-To: | <CA+RBt1nCqr0PBmCS21wBpCEHB_CDF8cJt4z_0oXV8n+Qqswu5A@mail.gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 03/01/2013 18:07, David McAllister wrote: > Hi. I have three machines that all run Win 7 x64 and all have updated > Cygwin installs. I thought I installed them all the same, but I'm > getting two differences, both centered around the ping command. > > Machine 1 doesn't have /usr/bin/ping.exe, so it uses Windows PING.EXE: >> which ping > /cygdrive/c/Windows/system32/ping > I type "ping" and it runs PING.EXE and succeeds. > Machine 2 had /usr/bin/ping.exe, but when I run it I get > ping: socket: operation not permitted. > So I found a thread about that not working unless you have admin > priviliges, so I deleted /usr/bin/ping.exe in favor of Windows > PING.EXE and rehashed. > However, on this machine it doesn't map "ping" to "PING", like it does > on the other machine. If I type "PING" it successfully runs Windows > PING. > Machine 3 has /usr/bin/ping.exe and when I type "ping" it runs it > successfully. I didn't do anything special when launching mintty or > tcsh to put it in administrator mode. > > I am an administrator on all three machines. > a) What makes one machine case insensitive to DOS commands and the > other sensitive? > b) What makes one machine succeed with Cygwin ping and the other not, > when I'm an admin on both? Do you have the package ping on any of the machines? http://cygwin.com/cgi-bin2/package-cat.cgi?file=ping%2Fping-1.0-1&grep=ping.exe If you see your $PATH, you will see that /usr/bin and /usr/local/bin go first, so if you have ping or ping.exe in there that will be executed. If don't, it will go down dir by dir until found (if). So if you install ping from cygwin package you are giving preference to it. Since in windows executables can be called 'yourbin' or 'yourbin.exe' both work, and the same for upper/lowercase. If you run MOUNT or Mount it will run the cygwin version as well. About the socket problem, no idea. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |