delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/30/18:07:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 30 Apr 2001 18:06:43 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Strange PATH behavior with 1.3.1
Message-ID: <20010430180643.E1408@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <2C08D4EECBDED41184BB00D0B747334202FB4354 AT exchanger DOT cacheflow DOT com>
Mime-Version: 1.0
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

- Raw text -


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