On Thursday, May 30, 2002, at 10:42 , Kipp, James wrote:
<<as for why I do old dog flag tricks - to be honest -
they make me feel safer.... I know that i will not even
look at anything, and I get the 'freebie' of not needing
to deal with a RegEx resolution - which I think is more
expensive - and I could do a benchmark - or you could if you wished. >>
very well. i see.
>
> while (<PIPE>) {
> next if $_ =~ /USER/;
<<#
# why not clean the front first and not need a $null
#
s/^\s+//;
my($user,$cpu,$mem,$vmem,$cmd) = split(/\s+/);
print ":$user:$cpu:$mem:$vmem:$cmd:\n";
#Try it - you'll like it....
>>
Done!
<<as you just noticed - you have one poll of data with ps
through /proc and another with /prstat -t .....
why not whack one set of them....
Ein popen! Ein DataTree! Ein InsertionPointForUpdate!!!
one way of doing this would be to modify my basic psTree
grovellor to take in what you are looking for....
http://www.wetware.com/drieux/pbl/Sys/psTree.txt
or maybe you modify your $ps cmd a little, and git rid
of this meshugenna prstat such like it is portable with
what and will not run into the gnu printer status code
by the same name??? >>
well I could sum the totals but i am afriad that might not be accurate. I
also need load averages from prstat. i don't think ps supplies them or do
they?
<<I still say it wouldn't hurt you to open it up and find
out how simple grovelling the process table really is, or
maybe better yet, you finally just get silly and pull down
say>>
ok, you convinced me. gonna open the sucka up.
<<
http://search.cpan.org/search?module=Solaris::Procfs
and see what you can do to upgrade it some....
>>
yeah, i looked at this but opted out/
thanx
jim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]