This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: WMIC
- From: "Christian Franke" <Christian dot Franke at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Tue, 12 May 2009 16:21:44 +0200
- Subject: Re: WMIC
- References: <64de84830905120629h1f07770ak9b91915c41f868ec@mail.gmail.com>
- Reply-to: "Christian Franke" <Christian dot Franke at t-online dot de>
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/
- References:
- WMIC
- From: Bruno Galindro da Costa