Web page hosting, cheap domain name registration & web site promotion services
  

 Home

Go forward to Hesiod maps.
Go backward to ndbm maps.
Go up to Map Types.
NIS maps
--------

   When using NIS (formerly YP), an Amd map is implemented directly by
the underlying NIS map.  Comments and continuation lines are *not*
supported in the automounter and must be stripped when constructing the
NIS server's database.

   NIS maps do not support cache mode `all' and, when caching is
enabled, have a default cache mode of `inc' (*note Automount
Filesystem::.).

   The following rule illustrates what could be added to your NIS
`Makefile', in this case causing the `amd.home' map to be rebuilt:
     $(YPTSDIR)/amd.home.time: $(ETCDIR)/amd.home
             -@sed -e "s/#.*$$//" -e "/^$$/d" $(ETCDIR)/amd.home | \
               awk '{  \
                      for (i = 1; i <= NF; i++) \
                          if (i == NF) { \
                              if (substr($$i, length($$i), 1) == "\\") \
                                  printf("%s", substr($$i, 1, length($$i) - 1)); \
                              else \
                                  printf("%s\n", $$i); \
                          } \
                          else \
                              printf("%s ", $$i); \
                  }' | \
             $(MAKEDBM) - $(YPDBDIR)/amd.home; \
             touch $(YPTSDIR)/amd.home.time; \
             echo "updated amd.home"; \
             if [ ! $(NOPUSH) ]; then \
                     $(YPPUSH) amd.home; \
                     echo "pushed amd.home"; \
             else \
                     : ; \
             fi

   Here `$(YPTSDIR)' contains the time stamp files, and `$(YPDBDIR)'
contains the dbm format NIS files.

 

 

 

 

Buy domain name registration | Register cheap domain name | Domain registration services 

Disclaimers: This document is provided as free service for the benefits of Active-Venture.com's website hosting customers only.

 

 
< You know you're a geek when... You try to shoo a fly away from the monitor with your cursor. That just happened to me. It was scary.   >
 

Tuesday 6 January 2009 07:56:34 1231228594