In the last episode (Jul 16), Steve Mazerski said:
> On Tuesday 16 July 2002 02:33, Dan Nelson wrote:
> > In the last episode (Jul 16), Steve Mazerski said:
> > > Is there an equivalent to Linux's "free" command in FreeBSD?
> > > Something that does this:
> > >
> > > user@localhost $ free
> > >              total       used       free     shared    buffers     cached
> > > Mem:        261672     178912      82760          0       9616     102020
> > > -/+ buffers/cache:      67276     194396
> > > Swap:       530136          0     530136
> >
> > Lines 4 & 5 of the output from 'top', pretty much.
> 
> Aha, thanks. There isn't a command which dumps the
> info to standard output by any chance? I'm considering
> setting up a webserver with a memory-heavy application
> and I intend writing a script to monitor memory usage.

top | sed -ne 4,5p

You can probably also install the net-snmp port and pull stats that
way.

-- 
        Dan Nelson
        [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to