Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
To: cygwin@cygwin.com
Subject: Re: Continued: small DOS program fails (Permission Denied) when run f rom Bash in XEmacs
References: <2C08D4EECBDED41184BB00D0B747334202FB436B@exchanger.cacheflow.com>
	<20010502160413.D31682@redhat.com>
From: dmkarr@earthlink.net (David M. Karr)
Date: 02 May 2001 19:07:35 -0700
In-Reply-To: <20010502160413.D31682@redhat.com>
Message-ID: <861yq7xk0o.fsf@earthlink.net>
Lines: 34
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

>>>>> "Christopher" == Christopher Faylor <cgf@redhat.com> writes:

    Christopher> On Wed, May 02, 2001 at 10:22:30AM -0700, Karr, David wrote:
    >> This is a continuation of an earlier issue.  I have a small DOS program,
    >> compiled and linked with MS tools, which executes fine in a standalone
    >> "cmd" window, and in a standalone Bash window, and within GNU make in
    >> either window.  However, when the Bash shell is running in XEmacs, it
    >> fails with "Permission Denied".  I put a printf at the top of "main",
    >> and it isn't getting there.  I would really appreciate some help
    >> understanding what is going on here.
    >> 
    >> I even tried printing "env" in the "good" and "bad" environments and
    >> manually setting (or unsetting) all the variables in the "bad"
    >> environment to match the "good" one, then rerunning it, but that didn't
    >> help.  However, there were two variables set in the "good" environment
    >> that I didn't set in the "bad" environment, because I didn't understand
    >> them.  They looked like this (straight from the "env" output):
    >> 
    >> !C:=C:\WINNT\PROFILES\david.karr\DESKTOP !D:=D:\cygwin\bin
    >> 
    >> What can I do to get any kind of clue of what is going on here?

    Christopher> Maybe some of the tools at www.sysinternals.com would help.  I
    Christopher> still suspect that you are not running the program that you
    Christopher> think you're running.

I've tried specifying both a relative and absolute path to the executable.  I'm
already using "filemon" from sysinternals, and it tells me next to nothing,
except for confirming I'm getting the correct executable.

-- 
===================================================================
David M. Karr          ; Best Consulting
dmkarr@earthlink.net   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

