Skip site navigation (1)Skip section navigation (2)
Date:      16 Oct 2004 13:52:25 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: automount vs Solaris
Message-ID:  <44acummtye.fsf@be-well.ilk.org>
In-Reply-To: <20041015191310.GO29177@elvis.mu.org>
References:  <200410072252.i97Mqifa084091@wattres.Watt.COM> <20041008084627.GA48159@happy-idiot-talk.infracaninophile.co.uk> <44vfdds39q.fsf@be-well.ilk.org> <20041014165827.GI29177@elvis.mu.org> <443c0fzthj.fsf@be-well.ilk.org> <20041015191310.GO29177@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein <alfred@freebsd.org> writes:

> * Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> [041015 12:11] wrote:

> > In the meantime, I came up with the following bit of awk to translate
> > the table syntax, for my fairly simple case:
> > 
> >   match($2,"/[^/]*$") { 
> >       print substr($2, RSTART+1, RLENGTH) " \trhost:=" $1 ";rsf:="
> >       substr($2, 1, RSTART-1) ;
> >       print ""
> >   }

Actually, I ended up changing that some more...

> So you're saying, you're using my autofs in a production environment?

No; that incantation translates the NIS-distributed autofs maps into
amd file maps; I am running it in a cron job.  

The regular expression handling for the glue you're missing will, I
suspect, be along the same lines (probably not in awk, though :-).  I
will try to use autofs when you merge it down to RELENG_5.  And
although it's a "production" environment, it's just my own desktop,
which is a non-critical machine.

Be well.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44acummtye.fsf>