delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Date: | Tue, 29 Jul 2003 22:33:04 +0100 (BST) |
From: | Elfyn McBratney <elfyn AT emcb DOT co DOT uk> |
X-X-Sender: | elfyn AT localhost DOT localdomain |
Reply-To: | cygwin AT cygwin DOT com |
To: | Lisbeth Kellogg <lisbeth DOT kellogg AT apioutsourcing DOT com> |
cc: | cygwin AT cygwin DOT com |
Subject: | RE: Problem call a cygwin command from a dos batch file |
In-Reply-To: | <006501c35618$0056d3c0$9901020a@api360.net> |
Message-ID: | <Pine.LNX.4.44.0307292231100.17302-100000@localhost.localdomain> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
On Tue, 29 Jul 2003, Lisbeth Kellogg wrote: > I guess I found the answer to my own question. Since some other people > have had this same problem, here is the solution. > > There is a problem with the PATH environment under Win 2000. To > identify the problem I typed the following in DOS: > > bash -c "which sort" > > I got a response of "/cygdrive/c/WINNT/system32/sort" instead of > "/usr/bin/sort". This is the DOS sort command, not the cygwin sort > command. I just had to change my command to: > > bash -c "c:/cygwin/bin/sort -t \| -k 3 -k 11 -k 12 -o > sortedfile.txt unsortedfile.txt" > > This could be a problem any time the DOS and cygwin commands have the > same name. Like find, rexec, ... Having 'C:\Cygwin\bin' at the front of your PATH environment variable would have solved this. Elfyn -- Elfyn McBratney, EMCB | http://www.nongnu.org/wwwauth/ http://www.emcb.co.uk | http://www.emcb.co.uk/webauth/ elfyn AT emcb DOT co DOT uk | wwwauth-users AT nongnu DOT org -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |