Linux Move a print job from one queue to another

www.lautt‮c.iru‬om
Linux Move a print job from one queue to another

To move a print job from one queue to another in Linux, you will need to use the lpmove command, which is part of the cups (Common Unix Printing System) package.

The lpmove command allows you to move a print job from one queue to another by specifying the source queue and the destination queue.

To move a print job from one queue to another, follow these steps:

  1. Use the lpstat command to list the available print queues and print jobs:
$ lpstat -p

This will display a list of the available print queues and print jobs.

  1. Identify the source queue and the destination queue. The source queue is the queue where the print job is currently located, and the destination queue is the queue where you want to move the print job.

  2. Use the lpmove command to move the print job from the source queue to the destination queue. The lpmove command requires the -d option to specify the destination queue, and the -p option to specify the source queue and the print job.

For example, to move a print job with the ID 123 from the queue queue1 to the queue queue2, you can use the following command:

$ lpmove -d queue2 -p queue1/123

This will move the print job with the ID 123 from the queue queue1 to the queue queue2.

Note that you will need the appropriate permissions to use the lpmove command. If you do not have the necessary permissions, you may receive an error message.

You can also use the lp command to move a print job from one queue to another. The lp command allows you to specify the destination queue using the -d option and the source queue and print job using the -i option. For example, to move a print job with the ID 123 from the queue queue1 to the queue queue2, you can use the following command:

$ lp -d queue2 -i queue1/123

This will move the print job with the ID 123 from the queue queue1 to the queue queue2.

Created Time:2017-10-30 10:17:36  Author:lautturi