Loading

Retrieve the status of the printer

The user may read the actual printer status information by applying an LP client programme such as lpq (BSD style) or lpstat (System V style).

The printer status and spool queue can be displayed using the lpq command. The queue name attribute is ignored; all print jobs are shown. Print jobs that have been processed by the PDL interpreter are not in the spool queue anymore. These jobs are in the list of scheduled jobs or the list of waiting jobs.

The content of the printer spool queue is shown via lpq and is protocol independent. lpq shows jobs submitted via LPD but also jobs submitted with other protocols. The job name shown may differ depending on the submission protocol.

The first line of the generated message describes the system’s status.

The lpd standard does not define the output format, but there is a de-facto standard to which the implementation complies:

Printer is ready and printing

Rank

Owner

Job

Files

Total Size

active

John

335

myjob.ps

1264 bytes

1st

John

336

anotherjob.ps

13243 bytes

And when the verbose listing is requested using the “-l” option of lpq:

Printer is ready and printing

John:

active

myjob.ps

[job 335ibis]

1264 bytes

John:

1st

anotherjob.ps

[job 336ibis]

13243 bytes

Here is an example of "lpq -l" execution showing a job with several files:

Printer is ready and printing

John:

1st

anotherjob.ps

Frame_A3_LandScape.ps

Frame_A4_LandScape.ps

Frame_A4_Portrait.ps

Frame_B4.ps

Frame_Folio_LandScape.ps

Frame_Foolscap.ps

Frame_Ledger_LandScape.ps

Frame_LegalGov_LandScape.ps

[job 1AURIGA]

13243 bytes

1168 bytes

1168 bytes

1185 bytes

1185 bytes

1168 bytes

1168 bytes

1177 bytes

1168 bytes