Operating System - Linux
1826073 Members
3574 Online
109690 Solutions
New Discussion

Script to move mulitple print queue entries

 
SOLVED
Go to solution
TheJuiceman
Super Advisor

Script to move mulitple print queue entries

Does anyone have a script that will enable one to move multiple print entries from one printer to another? Thanks.
2 REPLIES 2
Andrew Young_2
Honored Contributor
Solution

Re: Script to move mulitple print queue entries

Hi.

This depends on what you are trying to achieve.

Usually in the form:

lpshut
#if you want to only move some of the jobs
for jobs in `lpstat | somefilter`
do
lpmove $jobs
done
#to move the whole print queue instead of above
lpmove
#if you want the old printq to continue accepting requests
accept
#restart scheduler
lpsched

HTH

Andrew Y

Si hoc legere scis, nimis eruditionis habes
TheJuiceman
Super Advisor

Re: Script to move mulitple print queue entries

Thanks.