Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpsched(1M)

lp(1)

pac(1M)

lpr(1)

lpq(1)

lprm(1)

printcap(5)

lpd(1M)

NAME

lpd − remote line printer daemon

SYNOPSIS

/usr/lib/lpd [ -l ] [ -L logfile ] [ port # ]

DESCRIPTION

lpd is the remote line printer daemon (remote spool area handler) and is normally invoked at boot time from the rc(1M) program.  It uses the system calls listen(2) and accept(2) to receive remote files, display the queue, or remove jobs from the queue.  In each case, it forks a child to handle the request so the parent can continue to listen for more requests.  The Internet port number used to rendezvous with other processes is normally obtained with getservbyname(3N) but can be changed with the port# argument. The −L option changes the file used for writing error conditions from the system console to logfile.  The −l flag causes lpd to log valid requests received from the network. This can be useful for debugging purposes. 

Access control is provided by two means. First, All requests must come from one of the machines listed in the file /etc/hosts.equiv.  Second, if the “rs” capability is specified in the printcap entry for the printer being accessed, lpr requests will only be honored for those users with accounts on the machine with the printer.  This restriction only applies for BSD printers. 

When receiving remote files lpd follows the BSD 4.2 protocol for remote printers. 

Two types of files are transfered to lpd.  One type of file are data files to be printed.  Each of these files begins with df.  The other file type begins with cf.  Lines in each cf file specify files to be printed or non-printing actions to be performed.  Each such line begins with a key character to specify what to do with the remainder of the line. 

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

LLiteral.  The line contains identification info from the password file and causes the banner page to be printed. 

TTitle.  String to be used as the title for pr(1). 

HHost Name.  Name of the machine where lpr was invoked. 

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

MSend mail to the specified user when the current print job completes. 

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

lLike “f” but passes control characters and does not make page breaks. 

pName of a file to print using pr(1) as a filter. 

tTroff File.  The file contains troff(1) output (cat phototypesetter commands). 

dDVI File.  The file contains Tex (l) output (DVI format from Standford). 

gGraph File.  The file contains data produced by plot(3X). 

cCifplot File. The file contains data produced by cifplot.

vThe file contains a raster image. 

rThe file contains text data with FORTRAN carriage control characters. 

1Troff Font R. Name of the font file to use instead of the default. 

2Troff Font I. Name of the font file to use instead of the default. 

3Troff Font B. Name of the font file to use instead of the default. 

4Troff Font S. Name of the font file to use instead of the default. 

WWidth. Changes the page width (in characters) used by pr(1) and the text filters. 

IIndent.  The number of characters to indent the output by (in ascii). 

UUnlink.  Name of file to remove upon completion of printing. 

NFile name.  The name of the file which is being printed, or a blank for the standard input. 

Files are transfered into the spool queue using much the same calls as lp.  For the mapping between the BSD and normal CX/UX options, see lpr(1). 

FILES

/etc/printcapprinter description file
/usr/spool/∗spool directories
/etc/hosts.equivlists machine names allowed printer access

SEE ALSO

lpsched(1M), lp(1), pac(1M), lpr(1), lpq(1), lprm(1), printcap(5)
CX/UX Adminstrator’s Reference Manual.

CX/UX Administrator’s Reference

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