Each printer defined in/etc/printcap must have a corresponding directory in/var/lpd. Files starting with cf in the directory indicate a print table waiting to be sent to the appropriate device. This file is usually generated by lpr.
Lpr and lpd constitute a system that can work offline. When you use lpr, the printer does not need to be available immediately or even do not need to exist.
Lpd automatically monitors the printer status. When the printer goes online, the file will be sent for processing immediately. All applications do not have to wait for the printer to finish the previous job.
Syntax
Lpd [-l] [# port]
Parameter description:
- -L: display some debugging messages on the standard output.
- # Port: generally, lpd uses getservbyname to obtain the appropriate TCP/IP port. You can use this parameter to force lpd to use the specified port.
Instance
This program is usually executed by programs in/etc/rc. d at the start of the system.