This is a discussion on getting iostat -x %b with php within the PHP General forums, part of the PHP Programming Forums category; What is the best way to extract just the drive load information (%b column) from "iostat -x" (on ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |