« Return to Thread: Get System Information

Re: Get System Information

by evilpete :: Rate this Message:

Reply to Author | View in Thread

Hi

on linux you can read the /proc and /sys 'files'. Like:

$ cat /sys/block/hda/size
488397168

I don't know what this is, blocks or bytes, but you can read all kinds
of info from the kernel

greetz

Peter

ateista wrote:

> How can I get system information like Free/Total RAM memory, Disks sizes,
> etc?
> In windows I can use WMI, but there is a way to do it with MONO running on
> linux?
>
> If not, maybe I can get this info by executing a "FREE" and "DF" (executing
> those on command line gives the free memory and disks sizes)... but then how
> can I get the result from a command line application on my MONO app?
>
> Thanks, and sorry for my bad english :/
>
>
_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list

 « Return to Thread: Get System Information