LPD.EXE                   MAINTENANCE COMMANDS                      LPD.EXE


NAME
     lpd.exe - line printer daemon

SYNOPSIS
     lpd [?] [-h configfile]

DESCRIPTION
     lpd is the line printer daemon is based on Version 6 AT&T Unix
     implementation of RFC1179. It makes a single pass through the
     printcap file to find out about the logical printers and prints
     any files left after a crash. It then receives requests to print
     files in the queue, transfers files to the spooling area, displays
     the queue, and removes printed jobs from the queue. 
     The -h option changes the file used to configure TCP/IP stack.
     The ? flag prints the usage message and aborts.     

     This version of print spooler implements ISO6937/2 character
     coding scheme. The details are explained below. As an additional
     bonus lpd server can act as a file server for ftp requests.
     Spooler responds to lpq commands and ignores lprm commands.
     Lpc function is not implemented.

     Each printer is assigned a spool directory. By default spool directory
     is spool/ where  is the name set in 
     the printcap file. All spool directories have to set up manually
     prior to daemon invocation.
     lpd scans the spool directories for files ending with DTA and CTL
     extensions. DTA file contain file to be printed while CTL file
     specifies actions to be performed upon DTA file. Each line in CTL file
     begins with a key character to specify what to do with the remainder
     of the line. The following keywords are defined:

     J  Job Name.  String to be used for the job name on the burst page.

     C  Classification.  String to be used for the classification line on the
	burst page.

     L  Literal.  The line contains identification info and causes the banner
	page to be printed.

     T  Title.  String to be used as the title for pr type formatting.

     H  Host Name.  Name of the machine where lpr was invoked.

     P  Person.  Login name of the person who invoked lpr.  This is used to
	verify ownership by lprm.

     f  Formatted File.  Name of a file to print which is already formatted.

     l  Like "f" but passes control characters and does not make page breaks.

     W  Width.  Changes the page width (in characters) used by pr type 
	formatting and the text filters.

     I  Indent.  The number of characters to indent the output by.

     N  File name.  The name of the file which is being printed, or a blank
	for the standard input (when lpr is invoked in a pipeline).

    Processed DTA file (PRNFILE.PRN) is forwarded to specific printer. 
    The status of print spooler is displayed on the console. The following
    printer states are reported:

     Idle       Printer is awaiting jobs.

     Printing   Printer is printing a file.

     Timeout    Printer is unable to print.

     Not slcd   Printer is disconnected.

     No paper   There is no paper in the paper tray.

     I/O Error  Printer is off line or an error occurred.

    After printing, files are removed from the queue and accounting file
    is updated. This file can be periodically removed.

    LPD requires the DOS config.sys file to be set with the appropriate
    number of maximum open files. This value should be at least 3 plus
    5 for each printer.

    Several files are internally maintained during daemon operation.


FILES
     printcap           printer description file
     config.tel         TCP/IP stack configuration file
     hosts.lpd          list of hosts allowed to print
     *.FNT              ISO6937/2 font files
     minfree            size of memory available for spooler
     spool/*            spool directories
     seq                name translation cache
     history            accounting file
     *.DTA              data files to be printed
     *.CTL              control files accompanying data files
     PRNFILE.PRN        formatted data file send to the printer

SEE ALSO
    printcap hosts.lpd minfree config.tel 


PRINTCAP                     FILE FORMATS                     PRINTCAP


NAME
     printcap - printer capability data base

SYNOPSIS
     printcap

DESCRIPTION
     printcap is a simplified version of the termcap(5) data base for 
     once during initialisation.

     The default printer is normally lp. Each spooling utility supports
     a  -P printer option to explicitly name a destination printer.

     Each entry in the printcap file describes a printer, and is a line
     consisting of a number of fields separated by ':' characters.  The
     first entry for each printer gives the names which are known for the
     printer, separated by '|' characters.  The first name is the most
     common abbreviation for the printer, and the last name given should be
     a long name fully identifying the printer.  The first name should 
     contain no blanks; the last name may well contain blanks for
     readability.

     LPD daemon can be configured to support ISO6937/2 character coding
     scheme. This feature is supported only for HP Laser Jet Printers.
     Currently only one font: ISO6937/2 Courier 10pt is available.

     When configuring ISO6937/2 printer its logical name (first field
     in the printcap entry) must be "iso". It is also required that
     the second field in the database is "hplj" i.e:

	     iso|hplj|     

     Any other combination does not describe ISO6937/2 printer.

     Entries may continue onto multiple lines by giving a \ as
     the last character of a line, and empty fields may be included for
     readability.

     Note that current version of lpd only supports parallel printer
     ports LPT1-3 and a maximum of 16 logical printers.

     Capabilities in printcap are all introduced by two-character codes, and
     are of three types:

     Boolean   capabilities indicate that the printer has some particular
	       feature.  Boolean capabilities are simply written between
	       the ':' characters, and are indicated by the word 'bool' in
	       the type column of the capabilities table below.

     Numeric   capabilities supply information such as number of lines per
	       page, page width, and so on.  Numeric capabilities are
	       indicated by the word 'num' in the type column of the
	       capabilities table below.  Numeric capabilities are given by
	       the '#' character, followed by the numeric value.  For
	       example:  :pl#66:  is a numeric entry stating that the page
	       length for this printer is 66 lines.

     String    capabilities give a sequence which can be used to perform
	       particular printer operations such as form feeds.  String
	       valued capabilities are indicated by the word 'str' in the
	       type column of the capabilities table below.  String valued
	       capabilities are given by the two character capability code
	       followed by an '=' sign and then a string ending at the next
	       ':'.  For example,   :ff=\f:  is a sample entry stating that
	       the form feed character for this printer is '\f'. 
CAPABILITIES
     Name       Type    Default             Description

     af         str     "history"           name of accounting file
     ff         str     "\f"                string to send for a form feed
     fo         bool    false               print a form feed when device
					    is opened
     lf         str     NULL                job log file name
     lp         str     "LPT1"              device name to open for output
     mc         num     0                   maximum number of copies
     pl         num     66                  page length (in lines)
     pw         num     80                  page width (in characters)
     sb         bool    false               short banner (one line only)
     sc         bool    false               suppress multiple copies
     sd         str     "spool/lp"          spool directory
     sf         bool    false               suppress form feeds
     sh         bool    false               suppress printing of burst page
     tr         str     NULL                trailer string to print when
					    queue empties


HOSTS.LPD                       FILE FORMATS               HOSTS.LPD


NAME
     hosts.lpd - list of hosts allowed to print

SYNOPSIS
     hosts.lpd

DESCRIPTION
     HOSTS.LPD is the configuration file for PC lpd. It must reside in 
     the same catalogue as LPD.EXE. HOSTS.LPD replaces UNIX hosts.allowed
     file. If present, this file restricts the use of print server only
     to authorised hosts. If HOSTS.LPD is not present every one can use
     spooler. Each entry in HOSTS.LPD file must consist of individual lines
     containing the IP numbers of authorised hosts. Entries following
     # are treated as comments.


SEE ALSO
     lpd.exe


MINFREE                          FILE FORMATS                 MINFREE


NAME
     minfree - size of memory available for spooler

SYNOPSIS
     minfree

DESCRIPTION
     MINFREE is the configuration file for PC lpd. It must reside in 
     the same catalogue as LPD.EXE. If present MINFREE file restricts
     the maximum disk storage allocated to print server. Jobs bigger
     than the limit remaining in the MINFREE file are rejected.
     If MINFREE file is not present the job size is practically limited
     by the disk size. 


CONFIG.TEL                  FILE FORMATS                  CONFIG.TEL


NAME
     config.tel - TCP/IP stack configuration file

SYNOPSIS
     config.tel

DESCRIPTION
    CONFIG.TEL is the configuration file for the NCSA TCP/IP stack. 
    As with all NCSA Telnet utilities, a suitable config.tel file
    must be available.  It need not contain all configuration options,
    many of which are used for telnet.exe and other client utilities.
    The following options should, however, be correctly configured:

   myip=xxx.xxx.xxx.xxx        		# my internet address

   netmask=xxx.xxx.xxx.xxx     		# subnet mask often 255.255.255.0
   domain=""      			# local domain name
   name=default                		# sets default variables

   hardware=packet             		# only packet driver is supported
   interrupt=          			# adapter interrupt number, 
					# usually 60 (hex)

   ftp=yes                     		# FTP yes or no
   rcp=no                      		# RCP yes or no

   passfile="ftpusers"         		# if FTP on, name of password
					# file, if any

   hostip=xxx.xxx.xxx.xxx; nameserver=1 # IP of 1st nameserver
   hostip=xxx.xxx.xxx.xxx; gateway=1    # IP of 1st gateway


SEE ALSO
    NCSA Telnet, or ISO-Telnet user manual,

    ISO6937/2 Information Processing - Coded Character Sets for Text
    Communication - Part 2: Latin Alphabetic and Non-Alphabetic Graphic
    Characters.


BUGS
    Please report all bugs and comments to

	  Janusz J. Mlodzianowski
	  Universty of Gdansk
	  Institute of Experimental Physics
	  Wita Stwosza 57, 80-952 Gdansk, Poland
	  e-mail: fizjm@halina.univ.gda.pl

SOFTWARE AVAILABILITY
    ISO6937/2 Talk client software is available via anonymous ftp,
    from server panda.bg.univ.gda.pl (153.19.120.249):pub/msdos/iso

			  01 June 1995