thanks. question: why the counter in your code example? 

<personally I would open up the source to prstat and do their
ps grovelling so that you archive only what you need>

hmm..guess i should have scoured the man page before posting the question.
turns out one can print just the Total columns with 'prstat -t' 
<DUCK>
but i learned some valuable info
<\DUCK>


-----Original Message-----
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 10:30 AM
To: Kipp, James
Cc: Perl
Subject: Re: Help with parsing output



On Thursday, May 30, 2002, at 06:55 , Kipp, James wrote:

> NPROC USERNAME  SIZE   RSS MEMORY      TIME  CPU

that is the trick throwing away everything before this line,
and then doing a basic regEx on the stuff after it:

cf: http://www.wetware.com/drieux/pbl/Sys/Admin/prstatFilter.txt

personally I would open up the source to prstat and do their
ps grovelling so that you archive only what you need, and
output what you need rather than having to do

        prstat | prstatFilter

but your mileage may vary, void where prohibited by law
#include <mindlessLegalBoilerPlate.h>

ciao
drieux

---



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to