--- Federico Lucifredi mumbled on 2004-07-14 23.06.01 -0400 --- > > I need to write a script that will return how much memory (RAM) is on > a > > system as well as how much of it is being used. Can anyone assist? > > If this is done under UNIX/Linux, it might be easier than you think: just ^^^^ > poke around the proc filesystem and you might find that all you need is > really there....
[EMAIL PROTECTED] ~% uname -a FreeBSD long.example.org 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 [EMAIL PROTECTED] ~% ls /proc [EMAIL PROTECTED] ~% [EMAIL PROTECTED] ~% uname -a OpenBSD lube.example.org 3.4 GENERIC#0 i386 [EMAIL PROTECTED] ~% ls /proc ls: /proc: No such file or directory [EMAIL PROTECTED] ~% [EMAIL PROTECTED] ~% uname -a SunOS russian.example.org 5.9 Generic_112233-12 sun4u sparc UNW,Sun-Blade-1500 [EMAIL PROTECTED] ~% ls /proc 0/ 136/ 17457/ 177/ 220/ 245/ 290/ 306/ 368/ 8730/ 1/ 139/ 17458/ 183/ 22788/ 252/ 296/ 309/ 369/ 8914/ 12971/ 13999/ 17460/ 189/ 233/ 268/ 297/ 326/ 371/ 8916/ 12978/ 149/ 17462/ 2/ 241/ 270/ 3/ 334/ 49/ 8918/ 12980/ 165/ 17471/ 202/ 242/ 272/ 301/ 344/ 59/ -- Mike Burns [EMAIL PROTECTED] http://netgeek.ws _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm