Latest web development tutorials

Linux lpd command

Linux command Daquan Linux command Daquan

Linux lpd command is a resident printer management, it will be based content / etc / printcap to manage local or remote printer.

/ Etc / printcap defined for each printer must have a corresponding directory in / var / lpd, the directory to the beginning of the cf file represents a suitable means to wait for the printer to work. This file is usually produced by the lpr.

lpr and lpd form a system can work offline when you use lpr, the printer does not need to be able to be immediately available, do not even exist.

lpd automatically monitors the status of the printer when the printer is on-line, then send the file processed immediately. This was all applications without waiting for the printer to complete the job before.

grammar

lpd [-l] [#port]

Parameter Description:

  • -l: some debugging message is displayed on the standard output.
  • #port: Generally, lpd uses getservbyname strike a proper TCP / IP port, you can use this parameter to specify the use of forced lpd port.

Examples

This procedure is usually performed by a program in the system /etc/rc.d initiation stage.

Linux command Daquan Linux command Daquan