X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A09F803.5060509@gmail.com>
Date: Tue, 12 May 2009 23:28:19 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: WMIC
References: <64de84830905120629h1f07770ak9b91915c41f868ec@mail.gmail.com> 	 <1M3srY-208Trs0@fwd06.aul.t-online.de> <64de84830905120953g4d02f37fmf33f164f6aa27041@mail.gmail.com>
In-Reply-To: <64de84830905120953g4d02f37fmf33f164f6aa27041@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Bruno Galindro da Costa wrote:
> Christian,
> 
>    It Works perfectly for both! Can you explain why that commands
> works and not only "wmic cpu list full"?

> 2009/5/12 Christian Franke <Christian.Franke>

>> Bruno Galindro da Costa wrote:
>>>    I´m trying to run the WMIC (WMI Command-line interface) via Cygwin
>>> to parse the results with grep, awk, etc. But, when I try to run it,
>>> the cursor indicates that the command is executing, but nothing is
>>> printed on screen and the cursor is not released.
>>>    I maked a batch script (.cmd) which executes the WMIC and log the
>>> output into a log file. Then, I tried to call it with Cygwin, but the
>>> same behaviour happens.
>>>
>>> The command I want to execute is:
>>>
>>> "WMIC CPU LIST FULL"
>>>
>>> Anyone can help me to resolve the above problem?
>>>
>> The following works for me in Cygwin console (notty, tty, and mintty) on
>> XP:
>>
>> $ echo '' | wmic cpu list full
>>
>> or
>>
>> $ wmic cpu list full </dev/null

  So, are some of you guys using a DOS console, and some using
rxvt/xterm/whatever gui console?

    cheers,
      DaveK



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

