From owner-freebsd-questions@FreeBSD.ORG Tue May 13 19:30:19 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59C4C106564A for ; Tue, 13 May 2008 19:30:19 +0000 (UTC) (envelope-from pobox@verysmall.org) Received: from uranos.boku.ac.at (uranos.boku.ac.at [141.244.180.250]) by mx1.freebsd.org (Postfix) with ESMTP id 171528FC19 for ; Tue, 13 May 2008 19:30:18 +0000 (UTC) (envelope-from pobox@verysmall.org) Received: by uranos.boku.ac.at (Postfix, from userid 1001) id BED5C3381D9; Tue, 13 May 2008 21:30:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on uranos.boku.ac.at X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.4 Received: from localhost (localhost [127.0.0.1]) by uranos.boku.ac.at (Postfix) with ESMTP id 2F2D33381D4 for ; Tue, 13 May 2008 21:30:16 +0200 (CEST) Received: from uranos.boku.ac.at ([127.0.0.1]) by localhost (uranos.boku.ac.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17101-01 for ; Tue, 13 May 2008 21:30:14 +0200 (CEST) Received: from [141.244.63.108] (unknown [141.244.63.108]) by uranos.boku.ac.at (Postfix) with ESMTP id 8140A338126 for ; Tue, 13 May 2008 21:30:14 +0200 (CEST) Message-ID: <4829EA76.7020806@verysmall.org> Date: Tue, 13 May 2008 21:22:30 +0200 From: Iv Ray User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: powered by ZID at uranos.boku.ac.at Cc: Subject: accessing iostat -x %b with a scripting language X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2008 19:30:19 -0000 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