delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/20/13:09:56

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <5.1.0.14.0.20031020125730.029a8be8@127.0.0.1>
X-Sender:
Date: Mon, 20 Oct 2003 13:08:08 -0400
To: panchoi AT netzero DOT net, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: Executing programs. Cygwin on NT vs XP
In-Reply-To: <20031020165515.4314.qmail@web42003.mail.yahoo.com>
Mime-Version: 1.0

At 12:55 PM 10/20/2003, Francisco Iacobelli you wrote:
>Hi.
>I installed cygwin on NT and on XP. the NT
>installation works great. I
>compiled the same program using make on both (the
>program name is
>fid.exe).
>Now, on XP I go to the directory where the executable
>is and I have to
>type "./fid" to execute it. The program doesen't run
>well either (it
>is not reading a config file in the same directory)
>On NT, on the other hand, I go to the directory where
>the executable
>sits and i can call it just by typing "fid", and
>everything works
>perfectly.
>Any advice?...


Yes.  Read up on shells ('man bash' or 'info bash' may be enough) and/or get
yourself a good UNIX handbook.  This isn't a Cygwin-specific question.
See <http://cygwin.com/problems.html> for guidelines on the areas this 
list covers and the proper protocol for reporting problems to it.

Apparently you've add "." to your path on NT.  This is considered a 
security issue, so you may want to consider removing it.  However, it is
convenient.  Whichever way you decide to use the shell, this should be 
enough information for you to make your environments consistent.  As for the
differences you're seeing when running on XP, you could do some simple
debugging like comparing the environments but it's probably quickest and 
easiest to just build 'fid' for debugging and take a peek inside to see 
where the problem is.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019