From owner-freebsd-scsi Fri Jun 14 4:28: 6 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28]) by hub.freebsd.org (Postfix) with ESMTP id 2229337B400 for ; Fri, 14 Jun 2002 04:28:03 -0700 (PDT) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.11.6/8.11.6) with ESMTP id g5EBS1H06769 for ; Fri, 14 Jun 2002 13:28:01 +0200 (MEST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail2.siemens.de (8.11.6/8.11.6) with ESMTP id g5EBS0s26941 for ; Fri, 14 Jun 2002 13:28:00 +0200 (MEST) Received: (from localhost) by curry.mchp.siemens.de (8.12.2/8.12.3) id g5EBS07i078508 for freebsd-scsi@freebsd.org; Fri, 14 Jun 2002 13:28:00 +0200 (CEST) Date: Fri, 14 Jun 2002 13:28:00 +0200 From: Andre Albsmeier To: freebsd-scsi@freebsd.org Subject: Editing modepages via script Message-ID: <20020614132800.A17519@curry.mchp.siemens.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike X-RAVMilter-Version: 8.3.1(snapshot 20020109) (curry.mchp.siemens.de) Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I would like to modify a modepage entry with a script (depending on various things). I think camcontrol can only pass modepages to vi for editing. What I would like to do is something like: camcontrol modepage sa0 -m 15 -P 0 | sed -e some_stuff | camcontrol modepage sa0 -m 15 -P 0 I don't want to use "camcontrol cmd ..." for it. Any hints? Thanks, -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message