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