Loading

Command line options to obtain a status reply

Generally known command line options for the lpq and lpstat commands are listed in the following table.

Table 1. Command line options for the lpq and lpstat commands

lpstat option

lpq option

status info request

supported

-p<printer>

-P<printer>

select print queue

yes

-p<printer> -D

display in short format

yes

-p<printer> -L

-l + <interval>

- display in long format

- display status until print queue is empty

yes

no (see note below)

-o<list>

job# ...

status for specified jobs

yes

-u<userlist>

user ...

status of jobs from user

yes

NOTE

There may be specific command line options available in specific LP host implementations, which are not listed in the above table.