Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ makedbm(1M) — SunOS 5.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ndbm(3)

makedbm(1M)

NAME

makedbm − make a dbm file, or get a text file from a dbm file

SYNOPSIS

/usr/sbin/makedbm [ −b ] [ −l ] [ −s ] [ −i yp_input_file ] [ −o yp_output_name ]

[ −d yp_domain_name ] [ -m yp_master_name ] infile outfile

makedbm [ −u dbmfilename ]

AVAILABILITY

SUNWcsu

DESCRIPTION

The makedbm command takes infile and converts it to a pair of files in ndbm(3) format, namely outfile.pag and outfile.dir.  Each line of the input file is converted to a single dbm record.  All characters up to the first TAB or SPACE form the key, and the rest of the line is the data.  If a line ends with ‘ \ ’ (backslash), the data for that record is continued on to the next line.  makedbm does not treat ‘ # ’ (pound-sign) as a special character.  infile can be ‘ − ’ (dash), in which case the standard input is read. 

makedbm is mainly used in generating dbm files for the NIS name service, and, to that end, it generates a special entry with the key yp_last_modified, which is the date of infile (or the current time, if infile is ‘ − ’).  The entries that have keys with the prefix yp_ are interpreted by NIS server utilities. 

OPTIONS

−b Insert the YP_INTERDOMAIN into the output.  This key causes ypserv to use DNS for host name and address lookups for hosts not found in the maps. 

−l Lower case.  Convert the keys of the given map to lower case, so that, for example, host name matches will succeed independent of upper or lower case distinctions. 

−s Secure map.  Accept connections from secure NIS networks only. 

−i yp_input_file Create a special entry with the key yp_input_file.

−o yp_output_name Create a special entry with the key yp_output_name.

−d yp_domain_name
Create a special entry with the key yp_domain_name. 

−m yp_master_name
Create a special entry with the key yp_master_name. If no master host name is specified, yp_master_name will be set to the local host name. 

−u dbmfilename Undo a dbm file; i.e., print out the file in text format, one entry per line, with a single space separating keys from values. 

SEE ALSO

ndbm(3)

SunOS 5.5  —  Last change: 18 Jul 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026