automount vs Solaris
Lowell Gilbert
freebsd-questions-local at be-well.ilk.org
Sat Oct 16 10:52:26 PDT 2004
Alfred Perlstein <alfred at freebsd.org> writes:
> * Lowell Gilbert <freebsd-questions-local at 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.
More information about the freebsd-questions
mailing list