Holding and releasing print jobs (qhld command)
You can hold and release print jobs with the qhld command.
Note: You cannot hold and release remote print jobs.
To
perform this task, the following prerequisites must be met:- The printer must be physically attached to your system.
- You must be the print job owner.
- You must have root authority.
- You must be a member of the printq group.
Use the qhld command to put a print
job on hold after you sent it. You can either put a particular print
job on hold, or you can hold all the print jobs on a specified print
queue. To determine the print job number, enter the qchk command.
The basic format of the qhld command follows:
qhld [ -r ] {[ -#JobNumber ] [ -PQueue ] [ -uUser ]}
You
can hold a print job by using one of the following commands:
qhld -#JobNumber
qhld -PQueue
qhld -uUser
You can release a print job by using one of the following
commands:
qhld -r -#Jobnumber
qhld -r -PQueue
qhld -r -uUser
The following list contains examples of how to use the qhld command:
- To hold job number
452
on whichever print queue the job is on, type the following command:qhld -#452
- To hold all jobs queued on print queue
hp2
, type the following command:qhld -Php2
- To release job number
452
on whichever print queue the job is on, type the following command:qhld -#452 -r
- To release all jobs queued on print queue
hp2
, type the following command:qhld -Php2 -r