delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <00aa01c2ddd1$f033dfb0$4d1f1cac@THEODOLITE> |
From: | "Bruce Dobrin" <dobrin AT imageworks DOT com> |
To: | <cygwin AT cygwin DOT com>, "Robert Citek" <rwcitek AT alum DOT calberkeley DOT org> |
References: | <3 DOT 0 DOT 5 DOT 32 DOT 20030224173519 DOT 00f8fbc0 AT mail DOT earthlink DOT net> |
Subject: | Re: cpu and partition info |
Date: | Wed, 26 Feb 2003 12:02:06 -0800 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
It took me about an hour to change/add enough to the perl GPL "hinv" port to get it to work with cygwin ( hinv v 1.4pre2). example code: #!/usr/bin/perl #open (FD, "/proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProces sor"); if (-e "/proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProces sor/3") { $cpu = '4'; } elsif (-e "/proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProces sor/1") { $cpu = '2'; } else { $cpu = '1'; } if (-e "/proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProces sor/0/ProcessorNameString") { $cpus=`cat /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcess or/0/ProcessorNameString`; } else { $cpus=`cat '/proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProces sor/0/VendorIdentifier' << cat '/proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProces sor/0/Identifier'`; } print "$cpu $cpus\n"; ----- Original Message ----- From: "Robert Citek" <rwcitek AT alum DOT calberkeley DOT org> To: <cygwin AT cygwin DOT com> Sent: Monday, February 24, 2003 3:35 PM Subject: cpu and partition info > > Hello all, > > Is there a /proc/partitions or a /proc/cpuinfo in newer versions of Cygwin? > I'm looking for a way to determine cpu info and drive info from the > command line. I'm using v1.3.14. > > Thanks in advance, > - Robert > > > -- > 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/ > -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |