Date: Fri, 14 Jun 2002 19:38:30 +0200 From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: "Kenneth D. Merry" <ken@kdm.org> Cc: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>, freebsd-scsi@FreeBSD.ORG Subject: Re: Editing modepages via script Message-ID: <20020614193830.A18511@curry.mchp.siemens.de> In-Reply-To: <20020614075942.A56232@panzer.kdm.org>; from ken@kdm.org on Fri, Jun 14, 2002 at 07:59:42AM -0600 References: <20020614132800.A17519@curry.mchp.siemens.de> <20020614075942.A56232@panzer.kdm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14-Jun-2002 at 07:59:42 -0600, Kenneth D. Merry wrote: > 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 Thanks! I tried a echo "Data Compression Enabled: 0" | camcontrol modepage sa0 -m 15 -P 0 -e and it worked great. This is better than my hack replacing EDITOR with some script that changed what I wanted. Thanks again for the hint, -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020614193830.A18511>