On 02/25/09 13:40, James Carlson wrote:
> Michael Schuster writes:
>> this is a question about coding style/best practice, not about use.
>>
>> According to our plan, the (initial?) implementation of "ilbadm 
>> show-statistics" will in fact consist of a thin shim of check 
>> arguments-style work in ilbadm, and a ksh script that calls kstat(1M) and 
>> does some munging of the output before presenting it to the caller.
> 
> Why wouldn't you call the libkstat(3LIB) functions to read the values
> directly?

1) we already have the script from the prototype phase; adapting that to 
current needs seems much less work than re-writing.
2) independent of 1), I think shell and awk lend themselves nicely to this 
kind of string manipulation work.

Michael
-- 
Michael Schuster        http://blogs.sun.com/recursion
Recursion, n.: see 'Recursion'

Reply via email to