Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: , "Robert Citek" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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" To: 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/