getting iostat -x %b with php

From: Date: Tue, 06 May 2008 09:42:42 +0000
Subject: getting iostat -x %b with php
Groups: php.general 
Request: Send a blank email to php-general+get-273938@lists.php.net to get a copy of this message
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

« previous php.general (#273938) next »