delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/03/18/09:39:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
X-Received: by 10.180.72.148 with SMTP id d20mr14466338wiv.31.1363599325738; Mon, 18 Mar 2013 02:35:25 -0700 (PDT)
In-Reply-To: <CAH+_n-5pucx9OyqyLu4ZN99Z-cFjYgYiP4ZSbiXGHmD9QmeQiw@mail.gmail.com>
References: <CAH+_n-5pucx9OyqyLu4ZN99Z-cFjYgYiP4ZSbiXGHmD9QmeQiw AT mail DOT gmail DOT com>
Date: Mon, 18 Mar 2013 09:35:25 +0000
Message-ID: <CAHWeT-bAO=gToX767TRHYd6KnuXzmJZLythj5r=GDKsFPPxXYg@mail.gmail.com>
Subject: Re: problems with COM running native win32 applications through cygwin's bash
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 18 March 2013 06:26, Edward Peschko wrote:
>>> All,
>
>>> We are having difficulties running various windows utilities through
>>> bash. Through a regular windows cmd, one can run commands like
>>> diskshadow without issue, but with bash, we are having problems with
>>> COM calls not working. We have posted an example below.
>
>> I'd recommend reporting this to MS if you haven't already.  While
>> there may be something in Cygwin that needs tweaking for this, it
>> would be best if MS could diagnose what is failing and why.  That
>> would make any Cygwin fix happen quicker.
>
> Larry,
>
> After further analysis, it looks like the reason diskshadow is failing
> is because it requires a fully-fledged 64 bit running environment to
> execute COM calls. As a workaround (and for whomever runs into this
> same issue and needs a fix) we have downloaded ActiveState's 64 bit
> native perl, and are doing:
>
> perl -e "system('cmd')";
>
> to get a native 64 bit environment, which allows the COM calls to
> happen for diskshadow.

The 64-bit cmd.exe can be invoked directly like this:

/cygdrive/c/sysnative/cmd

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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