[K12OSN] Re: cups stopping printer

Vern Ceder vceder at canterburyschool.org
Wed Jan 11 00:06:47 UTC 2006


Never mind my blather about two lines or one line... it looks like the 
script came through with no word wrapping and is fine...

Vern

Vern Ceder wrote:
> We've used this strategy for quite a while. While I believe enabling an 
> already started printer is fine, I actually wrote a script to find the 
> disabled ones and enable only those.
> 
> Here's my "cupstickle" script which we run every 5 mimutes in a cron job:
> -----------------------------------------
> #!/bin/bash
> /usr/bin/enable `/usr/bin/lpstat -p | /bin/grep disabled | /usr/bin/cut 
>  -f 2 -d " "`
> -----------------------------------------
> (the last two lines above should really be on the same line, there is 
> only one line after the #!/bin/bash)
> 
> HTH,
> 
> Vern
> 
> RiE wrote:
> 
>> On 1/10/06, Peter Hartmann <ascensiontech at gmail.com> wrote:
>>
>>> Is there anything wrong with putting this in the crontab?  :
>>>
>>>
>>> 0-59/10  * * * * /usr/bin/enable [printer1] [printer2] .....
>>>
>>
>> what if you run enable on a printer that is already started?  will
>> that be a problem?
>>
>> For the minute, you could just do */10
>>
>> -- 
>> roger
>>
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
> 
> 

-- 
This time for sure!
    -Bullwinkle J. Moose
-----------------------------
Vern Ceder, Director of Technology
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
vceder at canterburyschool.org; 260-436-0746; FAX: 260-436-5137




More information about the K12OSN mailing list