Sun Microsystems Sun Workstation 100U System Manager's Manual page 204

Table of Contents

Advertisement

LPD(8)
MAINTENANCE COMMANDS
LPD(8)
NAME
Ipd -line printer daemon
SYNOPSIS
/uar /Ub/lpd (
-1 ) ( ·L logfile ) ( port
#: )
DESCRIPTION
Lpd is
the line printer daemon (spool area handler) and is normally invoked at boot time trom the
rc(8) file. It makes a single pass through the printcap(5) file to find out about the existing
printers and prints any files lett atter a crash. It then uses the system calls listen(2) and accept(2)
to receive requests to print files in the queue, transter files to the spooling area, display the queue,
or remove jobs trom the queue. In each case, it torks a child to handle the request so the parent
can continue to listen Cor more requests. The Internet port number used to rendezvous with other
processes
is
normally obtained with getservent(3N) but can be changed with the port# argument.
The -L option changes the file used tor writing error conditions trom the system console to logfiJe.
The -I
flag
causes lpd to log valid requests received trom the network. This can be usetul Cor
debugging purposes.
Access control is provided by two means. First, all requests must come trom one of the machines
listed in the file
I
etcl 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.
The file lock in each spool directory is used to prevent multiple daemons rrom becoming active
simultaneously, and to store inrormation about the daemon process ror lpr( 1), lpq( 1), and lprm( 1).
Arter the daemon ha.8 successfully set the lock, it scans the directory for files beginning with
cf.
Lines in each
cl
file speciry files to be printed or non-printing actions to be perrormed. Each such
line begins with a key character to speciry what to do with the remainder
ot
the line.
J
Job Name. String to be used tor the job name on the burst page.
C
Classification. String to be used tor the classification line on the burst page.
L
Literal. The line contains identification info trom the password file and causes the banner
page to be printed.
T
Title. String to be used as the title for pr(I).
H
Host Name. Name or the machine where lpr Wa.8 invoked.
P
Person. Login name of the person who invoked lpr. This is used to verify ownership by
lprm.
M
Send mail to the specified user when the current print job completes.
t
Formatted File. Name
ot
a file to print which is already formatted.
I
Like
"t"
but passes control characters and does not make page breaks.
p
Name of a file to print using pr(l) a.8 a filter.
t
Trofr File. The file contains troDtl) output (C/A/T phototypesetter commands).
d
DVI File. The file contains
TE;X
output (DVI tormat trom Stanford).
g
Graph File. The file contains data produced by plot(3X).
e
Cirplot File. The file contains data produced by dlplol.
v
The file contains a raster image.
r
The file contains text data with
FORTRAN
carriage control characters.
1
Trol Font R. Name or the ront file to use instead or the default.
2
Trofr Font I. Name or the tont file to use instead of the derault.
3
Troff Font B. Name of the font file to use instead
ot
the default.
Sun Relea.8e 1.1
Last change: 28 October 1983
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sun workstation 150u

Table of Contents