Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System info

33 views
Skip to first unread message

JD

unread,
Nov 5, 2000, 3:00:00 AM11/5/00
to
Hi,

I'm trying to create two console applications that should return some system
information equivalent to those Linux "/proc" ones:

/proc/cpuinfo
/proc/meminfo

Below is the output created by each of them:

"/proc/cpuinfo":

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 501.142285
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov
pat pse36 mmx osfxsr kni
bogomips : 499.71


"/proc/meminfo":

total: used: free: shared: buffers: cached:
Mem: 65613824 41943040 23670784 9740288 21188608 7921664
Swap: 501698560 3444736 498253824
MemTotal: 64076 kB
MemFree: 23116 kB
MemShared: 9512 kB
Buffers: 20692 kB
Cached: 7736 kB
SwapTotal: 489940 kB
SwapFree: 486576 kB

The objective is to use them as CGI's on a website that EXPECTS this sort of
output, piped into other scripts. Any idea on how to obtain this information
from the system in Pascal/Delphi?

Any help much appreciated!

JD

Jack Sudarev

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to
JD <joao_...@hotmail.com> wrote in message news:3a05d8a8$1_1@dnews...
..

> I'm trying to create two console applications that should return some
system
> information equivalent to those Linux "/proc" ones:
>
> /proc/cpuinfo
> /proc/meminfo
..

JD,
check on-line help for GetSystemInfo, GlobalMemoryStatus APIs and
example in C "Getting Hardware Information".

Regards,

Jack Sudarev.


JD

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to
Thanks for your help, but where do I find that example in C?

JD
"Jack Sudarev" <satoriD...@hotmail.com> wrote in message
news:8u4vth$29...@bornews.borland.com...

Jack Sudarev

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to
JD <joao_...@hotmail.com> wrote in message news:3a060ea7$1_1@dnews...

> Thanks for your help, but where do I find that example in C?

JD,
search Win32 Programmer`s Reference help file for "Getting
Hardware Information" phrase.
("X:\Program Files\Common Files\Borland Shared\MSHelp\win32.hlp")

Regards,

Jack Sudarev.


Paul Nicholls

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to
>Thanks for your help, but where do I find that example in C?

So why are you asking in a Delphi group?

--
Paul Nicholls (Delphi 5) Live long and optimise!
"Quidquid latine dictum sit, altum videtur" (Whatever is said in Latin
sounds profound) Author unknown

Home Page: www.southcom.com.au/~phantom
< IF YOU WANT TO EARN MONEY WHILE YOU SURF ON THE NET GO HERE: >
< http://www.alladvantage.com/go.asp?refid=BEM-274 >

JD

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to
Found it! Many thanks!

JD

unread,
Nov 6, 2000, 3:00:00 AM11/6/00
to
Because if you read the whole post instead of just firing it up, you would
see that it all started with a Pascal question that lead to an example in C!

JD


"Paul Nicholls" <pha...@southcom.com.au> wrote in message
news:3a0613a6_2@dnews...

0 new messages