In article <linux.kernel.3875D5F5.66500127@dacotec.net>,
Marcin Dalecki <dalecki@dacotec.net> wrote:
>root:/proc# cat meminfo
> total: used: free: shared: buffers: cached:
>Mem: 64577536 62787584 1789952 20643840 1339392 17186816
>Swap: 139821056 36478976 103342080
>MemTotal: 63064 kB
>MemFree: 1748 kB
>MemShared: 20160 kB
>Buffers: 1308 kB
>Cached: 16784 kB
>SwapTotal: 136544 kB
>SwapFree: 100920 kB
>
>Wonderfull!!!! The same data twice, albeit no one of them easly
>parsed!
Eh? Both formats are very easy to parse; the first two lines
are parsed in a snmp-type fashion (pick up the format in the
first line, use that to decypher the Mem: and Swap: lines) and
the rest is a simple tag assignment.
Easly parsed? By what?
C, like G-d himself intended.
>Really man sysctl *is* much much saner and what should be
>"depricated" is /proc
To make sysctl useful you'd have to do proc, and in that case you
might as well just use proc in the first place.
____
david parsons \bi/ cf: devfs flamefest.
\/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:12 EST