On Tue, Aug 12, 2003 at 07:08:07PM -0600, Battery Acid wrote:
> here's the errors:
> ./rc.autofs: line 20: [: missing `]'
> cut: !=: No such file or directory
> cut: x-: No such file or directory
> cut: ]: No such file or directory
> wc: invalid option -- g

>         while read dir map options
>         do
>            if [ ! -z "$dir" -a ! -z "$map" \ -a xcho "$map" | cut -c1 != 
> 'x-' ]
>            then

Whatever you did to get this script onto your system, it didn't
work.  You have a literal "Ctrl-E" (^E) character where you're
supposed to have a backquote (`) and a lowercase e.  Also, that
backslash (\) was supposed to be at the end of a line.  And the
closing backquote was supposed to be after the -c1.

Download the autofs-4.0.0pre10 source and go into the "samples"
directory.  The rc.autofs script there should give you a much better
idea what things should look like.  You may have to adapt it a bit
for your system, though.

_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to