December 2001
Intermediate to advanced
506 pages
10h 4m
English
In the following scenario, you have a job printing on a print queue, but you need to stop the queue so that you can put more paper in the printer.
Check the print queue using the lpstat command, as shown in the following example. The reason for the -v flag is so that you do not get a listing of all the printers. See Table 14-4 on page 403 for a list of lpstat command flags.
# lpstat -vlpforu Queue Dev Status Job Files User PP % Blks Cp Rnk ------ ---- -------- --- ---------------- -------- ---- -- ---- -- --- lpforu lp0 RUNNING 3 /etc/passwd root 1 100 1 1 1
Disable the print queue using the enq command, as shown in the following example. See Table 14-2 for a list of enq command flags.
# enq -D -P 'lpforu:lp0' ...
Read now
Unlock full access