Printers disabling
Kurt Pfeifle
kpfeifle at danka.de
Thu Jul 27 16:25:08 PDT 2006
Tim <tryan at nc.rr.com> wrote (Friday 28 July 2006 00:59):
>> If it is 1.2.x, you can use
>>
>> /usr/sbin/lpadmin -p printername -o printer-error-policy=retry-job
>>
>> More gory details are on
>>
>> http://www.cups.org/documentation.php/ref-printers-conf.html#ErrorPolicy
>> http://localhost:631/help/ref-printers-conf.html?TOPIC=References&QUERY=#ErrorPolicy
>>
>> Cheers,
>> Kurt
>
> Thank you, that should do what I want. I'll try it first thing in
> the morning. Is there any way to set it for all the printers?
for printer in $(lpstat -p | grep ^printer | awk '{print $2}'); do
/usr/sbin/lpadmin -p ${printer} -o printer-error-policy=retry-job \
&& echo "\"retry-job\" is now the ErrorPolicy for printer ${printer}"
done
More information about the cups
mailing list