Previous Topic: LPR/LPD ProtocolNext Topic: LPD Job Commands


Basic LPD Commands

The verbs in the command names must be interpreted as statements made to the daemon. Thus, the command "Print any waiting jobs" is an imperative to the line printer daemon to which it is sent. A new connection must be made for each command to be given to the daemon.

The following LPD commands are used:

01—Print any waiting jobs

This command starts the printing process if it is not already running.

02—Receive a printer job

A second level of commands controls receiving a job. The daemon is given commands by sending them over the same connection.

03—Send queue state (short)

If the user names or job numbers or both are supplied, then only those jobs for those users or with those numbers are sent.

04—Send queue state (long)

If the user names or job numbers or both are supplied, then only those jobs for those users or with those numbers are sent.

05—Remove jobs

This command deletes the print jobs from the specified queue, which are listed as the other operands. If only the agent is given, the command is to delete the currently active job.