www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/04/21:43:02

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: Wed, 4 Dec 2002 18:44:19 -0800 (PST)
From: Michael A Chase <mchase AT ix DOT netcom DOT com>
Subject: Re: Can't run Macro Express from within Cygwin bash shell
To: cygwin <cygwin AT cygwin DOT com>, Jack Twilley <jtwilley AT brightmail DOT com>
Message-ID: <Mahogany-0.64.2-1204-20021204-184419.00@ix.netcom.com>
MIME-Version: 1.0
references: <86hedtdxiz DOT fsf AT ls-jtwilley DOT brightmail DOT com>
in-reply-to: <86hedtdxiz.fsf@ls-jtwilley.brightmail.com>
fcc: SentMail
Reply-To: Michael A Chase <mchase AT ix DOT netcom DOT com>

On Wed, 04 Dec 2002 18:12:20 -0800 Jack Twilley <jtwilley AT brightmail DOT com> wrote:

> This is probably a general question and not application-specific.
> 
> I can run the application from a cmd window in Win2kAS with a command
> line like this:
> 
> c:\progra~1\macroe~1\meproc.exe /Fj:\diesel\scripts\PerfmonMacros.mex
> /APerfMonInit
> 
> I've tried running the same command line with lots of escaping from a
> Cygwin bash shell, both remotely and locally.  It doesn't work.  I've
> tried mixtures of /cygdrive/c and c:\\ and I can see the files in the
> remote directory from the bash shells just fine.  What am I doing
> wrong?

If it's a MSDOS/Windows executable, it won't know anything about Cygwin
paths.  Getting backslashes (\) right can be rather tricky in a shell
environment, so what I'd suggest is something like this:

 # A DOS program won't understand Cygwin file specifications
 mex=$(cygpath -w -a /cygdrive/j/diesel/scripts/PerfmonMacros.mex)

 # Use a Cygwin path for the shell to find the program
 "/cygdrive/c/Program Files/MacroExe/meproc" /F$mex /APerfMonInit

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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