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
Date: Mon, 30 Apr 2001 18:06:43 -0400
From: Christopher Faylor <cgf@redhat.com>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Re: Strange PATH behavior with 1.3.1
Message-ID: <20010430180643.E1408@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
References: <2C08D4EECBDED41184BB00D0B747334202FB4354@exchanger.cacheflow.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <2C08D4EECBDED41184BB00D0B747334202FB4354@exchanger.cacheflow.com>; from david.karr@cacheflow.com on Mon, Apr 30, 2001 at 03:03:27PM -0700

On Mon, Apr 30, 2001 at 03:03:27PM -0700, Karr, David wrote:
>I'd like to get some strace output.  I really would.  Running my script
>with "strace -o strace.out -f <scriptname>" leaves me with an
>"strace.out" file of zero size.  It seems to not do anything when run
>on a script.

Don't run it on scriptname.  strace is a mingw program (for hopefully
obvious reasons).  It can't execute shell scripts.  You have to run it
on the shell which is unable to find the scriptname.  You indicated that
scriptname ran correctly when invoked by hand so I don't see that any
useful information would come about from running it via strace, even if
it did work.

If you really want to execute a script, the way to do it is:

strace -owqwer sh script

or, in your case:

strace -owqwere sh -c "script"

cgf

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

