getting iostat -x %b with php

[email protected] (Iv Ray)
Newsgroups php.general
Message-ID <[email protected]>
What is the best way to extract just the drive load information (%b 
column) from "iostat -x" (on  FreeBSD)?

I imagine to exec() the "iostat -x" and then process the result with 
regex, but I am not sure if this is the best way - for instance, is %b 
is aways the Nth column in the returned value?

Iv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.