Prioritizes a job in the print queue.
The qpri command prioritizes a job in a print queue by specifying the job number and giving it a priority number.
The qpri command works only on local print jobs and the local side of remote queues. Remote print jobs are not supported. Also, you must have root user authority or belong to the printq group to run this command.
You can use the Printer Queues application in Web-based System Manager (wsm) to change printer characteristics.
You could also use the System Management Interface Tool (SMIT) smit qpri fast path to run this command.
In AIX® 4.3.2 and above, qstatus was enhanced to improve the administration of local queues showing duplicate 3-digit job numbers. You can use the -W flag with the enq, qchk, lpstat, and lpq status commands to display more job number digits.
If your queue display shows duplicate 3-digit job numbers, use qchk -W to list job numbers with greater precision. You can then alter the priority of a specific job.
For example, qchk might display job number 123 twice while, qchk -W would display job number 1123 and 2123. If you want to alter the priority of job number 2123, specifying qpri -# 123, causes the qdaemon to alter the priority of the first matching job number it finds in its internal list, which may be 1123. By having the additional information that the qstatus -W provides, you can alter the priority of a specific job number.
Item | Description |
---|---|
-# JobNumber | Specifies the job number on which to change priority. |
-a PriorityNumber | Specifies the new priority number for the print job specified by the JobNumber variable. The range of priority numbers is 1 through 20, except for the root user or a member of the printq group, who can select priority numbers from 1 through 30. |
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
Item | Description |
---|---|
/usr/sbin/qdaemon | Contains the qdaemon daemon. |
/var/spool/lpd/qdir | Contains the job description files. |
/var/spool/lpd/stat | Contains information on the status of the devices. |
/var/spool/qdaemon | Contains the temporary copies of enqueued files. |
/etc/qconfig | Contains the configuration file. |
/etc/qconfig.bin | Contains the digested, binary version of the /etc/qconfig file. |