Operating System - Linux
1825806 Members
2236 Online
109688 Solutions
New Discussion

Re: 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.