[Mono-list] Get System Information

Peter Hagen peter at wingsofdeath.nu
Mon Jun 11 14:51:33 EDT 2007


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 :/
> 
> 


More information about the Mono-list mailing list