rembak program
The local queue set up to serve remote print requests must be configured to use rembak, the remote print backend command.
When you set up the queue, the system prompts for a backend program path name. The entry at this prompt tells the qdaemon command which backend program to use to process print requests. To set up a queue to handle remote print requests, type /usr/lpd/rembak.
The rembak command also processes status requests, job cancel requests, and requests to kill a remote queuing system. Status requests such as qchk -A or lpstat query the status of local print queues and devices by analyzing the qconfig file and the local print spooling subsystem status files.
In a remote print environment, the qchk -A and lpstat commands use the rembak program to request queue status information from the print servers. The output of a queue status command shows two entries for each remote queue. The first entry is the status of the local queue to which remote jobs are sent. The second entry shows the status of the queue on the remote print server where the jobs are printed. In the following example, the queue name rq was used for both the queue on the local system and the queue on the remote print server:
Queue Dev Status Job Files User PP % Blks Cp
----- --- ------ --- --------------- ---------- --- -- ---- --
Iago Iago RUNNING 284 mileaf ann@arctur 15 13 1 1
Pro asc READY
bsh bshde READY
ps ps READY
rq rqd READY
rq ps1 RUNNING 297 .deskprint/dsktop sarah@alde 60 22 1 1
QUEUED 298 .deskprint/howtol sarah@alde 60 1 2
As the preceding example shows, any print jobs currently running or queued are displayed in the remote print server entry for the queue.
The rembak program also sends requests to cancel print jobs to the remote print servers. Each print job is assigned a number. As shown in the preceding example, print queue status requests display the job numbers for currently queued or running print requests. To cancel a job on a remote queue, use the same commands used to cancel local print jobs. For example, to cancel job 298 from the queue rq, you can use one of the following commands:
qcan -Prq -x298
OR
lprm -Prq 298