[Casper] Stuck print queues
Ryan Harter
rharter at uwsp.edu
Mon Feb 9 13:02:51 PST 2009
Part of the problem is that in Leopard the default job fail procedure
is to pause the printer. Now that you need admin privs to unpause the
printer, this can be bothersome.
I've got a script that runs at login the ensures the correct printer
is default, and I added this section to the end to change the default
error-policy on all printers to abort job. This has really reduced
the calls we get from labs saying the printers are paused.
#!/bin/bash
printers=`lpstat -a | awk '{print $1}'`
for printer in $printers
do
echo "Changing error policy on $printer"
lpadmin -p "$printer" -o printer-error-policy=abort-job
done
exit
Hope it helps.
Ryan Harter
UW - Stevens Point
Workstation Developer
715.346.2716
Ryan.Harter at uwsp.edu
On Feb 9, 2009, at 1:11 PM, Eric Young wrote:
> well that works a treat. Course now I have paused queues for the
> printer :-)
>
>
> ----------------------------------------------------------------------------------------------
> Eric Young
> eyoung at thayer.org
> 781-664-2286 Work
>
> I am among those who think that science has great beauty. A
> scientist in his laboratory is not only a technician: he is also a
> child placed before natural phenomena which impress him like a fairy
> tale.
> - Marie Curie
>
>
> On Feb 9, 2009, at 1:30 PM, Brenner, John wrote:
>
>> You should be able to send a cancel –a – shell script via casper.
>>
>>
>> On 2/9/09 12:25 PM, "Eric Young" <eyoung at thayer.org> wrote:
>>
>>> anyone figure out a way to clear local print queues en mass?
>>>
>>> Having an issue where a lab full of machines will all stop
>>> printing when one or more stations sends a bad job. These are
>>> local queues managed by WGM. Right now, I am hitting every
>>> machine individually to clear stuck jobs.
>>>
>>> It seems to me there should be a way to blast a script or some
>>> such, that clears a specific print queue for a whole lab.
>>>
>>> any clues would be greatly appreciated.
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------------------------------
>>> I must not fear. Fear is the mind-killer.
>>> Fear is the little-death that brings total obliteration.
>>> I will face my fear. I will permit it to pass over me and through
>>> me.
>>> And when it has gone past I will turn the inner eye to see its path.
>>> Where the fear has gone there will be nothing.
>>> Only I will remain.
>>> --Bene Gesserit Litany (Frank Herbert)
>>> --------------------------------------------------------------------------
>>> Eric Young
>>> eyoung at thayer.org
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Casper mailing list
>>> Casper at list.jamfsoftware.com
>>> http://list.jamfsoftware.com/mailman/listinfo/casper
>> John Brenner | Merrill Corporation | IOG IT |
>> 651-632-4072
>>
>>
>>
>
> <ATT00001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090209/4b1f3ecd/attachment.html
More information about the Casper
mailing list