From owner-freebsd-scsi Fri Jun 14 6:59:49 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 4D85237B420 for ; Fri, 14 Jun 2002 06:59:46 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g5EDxgG56272; Fri, 14 Jun 2002 07:59:42 -0600 (MDT) (envelope-from ken) Date: Fri, 14 Jun 2002 07:59:42 -0600 From: "Kenneth D. Merry" To: Andre Albsmeier Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Editing modepages via script Message-ID: <20020614075942.A56232@panzer.kdm.org> References: <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 In-Reply-To: <20020614132800.A17519@curry.mchp.siemens.de>; from andre.albsmeier@mchp.siemens.de on Fri, Jun 14, 2002 at 01:28:00PM +0200 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 On Fri, Jun 14, 2002 at 13:28:00 +0200, Andre Albsmeier wrote: > 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? The work that Kelly Yancy did a while back to make camcontrol modepage scriptable, among other things, should do the trick. You can do things like: echo "WCE: 1" | camcontrol modepage da3 -m 8 -e Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message