accessing iostat -x %b with a scripting language

Iv Ray pobox at verysmall.org
Tue May 13 19:30:19 UTC 2008


Is there a standard way to access, with a scripting language (php, perl, 
etc.) the output of -

iostat -x

I am particularly interested in the %b column (HDD utilization).

I am not sure if reading the output and regex-ing the Nth column is the 
right approach, or there is a more intelligent one.

Iv


More information about the freebsd-questions mailing list