Technical data

The following examples show how to use the pdls command to display job
attributes and values:
To lists the printer attributes of printers lab200 and mimi:
# pdls -c printer lab200 mimi
To list all queues on the default spooler:
# pdls -c queue
To list the job and document attributes for job status on spooler
blu_spl:
# pdls -c job -x "scope=1" blu_spl:status
7.1.4 Listing a Job Queue
You can use the pdq command to query a logical printer for a list of jobs
that are currently in the printer’s queue. The list displays the jobs in the
scheduled print order. The pdq command writes the list of jobs to standard
output. If you do not use the -p option to specify a printer, pdq lists jobs in
the queue of the printer specified by the PDPRINTER environment variable.
Thepdq command has the following syntax:
pdq [-f filter_expression] [-F] [-g] [-p printer_name] [-r requested_attributes]
[-s style_name][-xextended_attribute_string
...][-Xattribute_filename
...
]
[ server_name:][job_id [ .doc_int]]
The following examples show how to use the pdq command to list job queues:
Display the jobs you submitted to the queue associated with the default
printer:
# pdq
Display all your jobs in the queue associated with the logical printer,
myprinter:
# pdq -p myprinter
Display the jobs you have submitted to your default printer, and show
their state and when they were submitted:
# pdq -r "job-ident job-name submission-time current-job-state"
Display all information about job 123 and its documents:
pdq -r all -s line -x scope=1 123
Display all pending jobs on spooler, sonny_sp1 belonging to user,
copperfield
pdq -f "(job-owner==copperfield) && (cur-job-state==pending)" sonny_spl:
7–4 Managing Jobs and Documents