Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2006 10:28:10 -0500 (EST)
From:      Ensel Sharon <user@dhp.com>
To:        Luke Bakken <luke.bakken@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: shell scripting question (mdconfig device choosing)
Message-ID:  <Pine.LNX.4.21.0601251027420.8684-100000@shell.dhp.com>
In-Reply-To: <6acc6ca40601250710x3b0de685j2d7168f6ac5442a0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 25 Jan 2006, Luke Bakken wrote:

> > Thank you very much - you got no output because you have no md devices in
> > use.  I have a few in use and this is the output I get:
> >
> > # mdconfig -l
> > md3 md2 md1 md0
> >
> > But I could just as easily get:
> >
> > # mdconfig -l
> > md9 md8 md5 md3
> >
> > Hmm...I just saw that that line is in perl, and I do not have perl
> > installed on any of my 6.0 machines ... I am not sure I want to install it
> > just for this one shell script :(
> 
> Whoops, I forgot that perl isn't in the base any more. What scripting
> languages do you have? If you only have sh, I'll work on that, but it
> won't be a one-liner most likely. Or a C program.


I am putting this into a larger, already written /bin/sh program
... doesn't need to be one line ...

Wow - thanks a lot for your help.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0601251027420.8684-100000>