www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/12/10:22:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <64de84830905120629h1f07770ak9b91915c41f868ec@mail.gmail.com>
References: <64de84830905120629h1f07770ak9b91915c41f868ec AT mail DOT gmail DOT com>
Date: Tue, 12 May 2009 16:21:44 +0200
Reply-To: "Christian Franke" <Christian DOT Franke AT t-online DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: WMIC
From: "Christian Franke" <Christian DOT Franke AT t-online DOT de>
Message-ID: <1M3srY-208Trs0@fwd06.aul.t-online.de>
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

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


-- 
Christian Franke




--
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/

- Raw text -


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