Re: getting memory info from system

2001-06-21 Thread Chas Owens
The GTop module interfaces with the libgtop library. The good news is that there is a BSD version of libgtop. See http://home-of-linux.org/gnome/libgtop/platform-bsd.html for details. Here is some example code: #!/usr/bin/perl -w use GTop; use constant B => 1; use constant KB => B*1024; us

Re: getting memory info from system

2001-06-19 Thread Chris Hedemark
Clarification: I'm doing this on OpenBSD. If there is a portable function that will work across *NIX flavors that is preferable but if not I guess I need something BSD specific. Thanks. Chris Hedemark - Hillsborough, NC http://yonderway.com Original Message - From: "Chris Hedemark" <[

Re: getting memory info from system

2001-06-19 Thread Chris Hedemark
Doesn't work on OpenBSD. - Original Message - From: <[EMAIL PROTECTED]> To: "Chris Hedemark" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 12:05 AM Subject: Re: getting memory info from system > yeah just type : &#x

Re: getting memory info from system

2001-06-19 Thread Chas Owens
I think this is going to wind up being machine dependant. Solaris Solaris::Procfs -- reads the /proc filesystem Linux GTop -- interfaces with libgtop (which reads the /proc filesystem) windows Win32::SystemInfo There are almost certainly others. Most Unix boxen store this info in the /proc fi

Re: getting memory info from system

2001-06-19 Thread perl
yeah just type : 'free' Ryan On Tue, 19 Jun 2001, Chris Hedemark wrote: > Howdy, > > I'm tearing through my O'Reilly books and the CPAN search trying to find a > module or built-in function call that will let me get statistics back from > the system regarding memory. I'm trying to find: > > 1)