Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 19:35:44 -0800 (PST) From: Michael A Chase Subject: Re: Can't run Macro Express from within Cygwin bash shell To: cygwin , Jack Twilley Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE references: <86hedtdxiz DOT fsf AT ls-jtwilley DOT brightmail DOT com><86el8xduvu DOT fsf AT ls-jtwilley DOT brightmail DOT com> in-reply-to: <86el8xduvu.fsf@ls-jtwilley.brightmail.com> fcc: SentMail Reply-To: Michael A Chase On Wed, 04 Dec 2002 19:09:25 -0800 Jack Twilley wrote: > >>>>> "Michael" == Michael A Chase writes: > > [...] > > Michael> If it's a MSDOS/Windows executable, it won't know anything > Michael> about Cygwin paths. Getting backslashes (\) right can be > Michael> rather tricky in a shell environment, so what I'd suggest is > Michael> something like this: > > Michael> # A DOS program won't understand Cygwin file specifications > Michael> mex=$(cygpath -w -a > Michael> /cygdrive/j/diesel/scripts/PerfmonMacros.mex) > > Michael> # Use a Cygwin path for the shell to find the program > Michael> "/cygdrive/c/Program Files/MacroExe/meproc" /F$mex > Michael> /APerfMonInit > > Your solution works with a local bash shell but not a remote one. Any > idea why? While logged in remotely, I can ls both the binary and the > macro file, so it's not a permissions thing, or I don't think it is > anyway. What part is failing? Is cygpath.exe running at all? Is cygpath.exe converting the PerfmonMacros.mex path correctly? Is meproc.exe running at all? What happens if you try to run meproc.exe with other arguments? ... -- 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/