Operating System - HP-UX
1825667 Members
4280 Online
109686 Solutions
New Discussion

How to move files already in printer que

 
SOLVED
Go to solution
Janko Meskovski
Occasional Contributor

How to move files already in printer que

I need to move files already in a printer que to a different printer. I can get a list of the request ids with lpstat. Is there a way to move all the requests at once or at least a way to move them one by one.
3 REPLIES 3
john korterman
Honored Contributor

Re: How to move files already in printer que

Hi,

I think it should be possible with the lpalt comand, e.g.:
# lpalt

but I have not treid it. try man lpalt.

regards,
John K.
it would be nice if you always got a second chance
Robert-Jan Goossens
Honored Contributor
Solution

Re: How to move files already in printer que

Hi,

Take a look at the lpmove command

lpsched, lpshut, lpmove, lpfence - start/stop the LP request scheduler, move requests, and define the minimum priority for printing

Hope it helps,

Robert-Jan.
Janko Meskovski
Occasional Contributor

Re: How to move files already in printer que

Thank you for your answers, it took some man reading but I solved the problem fast.

lpalt would help moving the qued items one by one.

"lpmove dest1 dest2" moved all the items already on que and redirected all future requests (which is exactly what I needed). I had to shutdown the scheduler first "lpshut" and restarted it with "lpsched".