Chapter 11. Line Printer Requester (LPR)
Youcan request to have your spooled files sent to any system in your TCP/IP
network. The term that UNIX TCP/IP software uses to describe this support is line
printer requester (LPR). LPR is the sending, or client, portion of a spooled file
transfer. On theAS/400 system, the
Send TCP/IP Spooled File
(SNDTCPSPLF)
command provides this function by allowing you to specify on which system you
want the spooled file printed. It also allows you to specify how you want it printed.
The printing facilities of the destination system handle the printing of the file. On the
AS/400 system, the line printer daemon (LPD) is the process on the destination
system that receives the file sent by the SNDTCPSPLF command. For more
information on LPD, see “Chapter 12. Line Printer Daemon (LPD)”on page 363.

LPR Command

The LPR command provides the same parameters and function as the
SNDTCPSPLF command.
The LPR command sends a control file to the LPD server. This control file contains
attributes and options that the LPR/LPD protocol recognizes. These attributes and
options are not like the attributes that an AS/400 holds for a spooled file. Instead,
they refer to information such as the names of the sending system, the sending
user, and the name for the request. Some limited information about how the you
need to print the file, such as the number of copies and information about the
separator page, is included.
The LPR command sends these attributes and options to the destination system in
a control file, which is always in ASCII format. This control file is separate from the
file containing the data stream that it prints.

Client (LPR) and Server (LPD) Relationship

Figure 212 shows the client and server relationship between LPR and LPD.
┌───┐ ┌────────────┐ ┌───┐
│ ├────┤control file├───────────────────Ê│ │
│ │ └────────────┘ │ │
│ L │ ┌─────────────────┐ │ L │
│ P ├────┤data files ├──────────────Ê│ P │
│ R │ └─────────────────┘ │ D │
│ │ ┌───────────┐ │ │
│ │Í────────────────────┤return code├────┤ │
└───┘ └───────────┘ └───┘
Figure 212. The Client (LPR) and Server (LPD) Relationship
© Copyright IBM Corp. 1997, 1999 345