"Printer disabled" - how to prevent it?

Anonymous anonymous at easysw.com
Fri Aug 26 08:51:33 PDT 2005


#!/bin/bash
for i in `cat /etc/cups/printers.conf | grep \<  | grep -v Default | grep -v \/ | awk '{print $2}'
 | sed  's/>//g'`
do /usr/bin/enable $i
done

Enjoy!!! :P

Luciano

> HI,
> I face some problem too, several printers in cups list sometime became stop
> itself and need manually to start it again.
>
> there is a way how to prevent this printer stop, may be someone can help
> give the way how to add some script in cups to automatically start printer
> when it status stop or maybe luciano can give the example script that put in
> the cron :)
>
> Thanks and Regards,
> Ed
> ----- Original Message -----
> From: <lucianogiacchetta at yahoo.com.ar>
> Newsgroups: cups.general
> To: <cups at easysw.com>
> Sent: Friday, August 26, 2005 8:05 AM
> Subject: [cups.general] Re: Re: "Printer disabled" - how to prevent it?
>
>
> > I fix this problem whith a script in the cron... this scrip read all de
> printers from printers.conf and whith awk process the file.
> > Then, i have only the printers names, and whith ...enable printer_name...
> i have each 5 minutes, all de printers enables!! :D
> >
> > if you like, i can put this scrip in the forum...
> >
> > Luciano
> >
> > > did the computer doto sleep or suspend to ram?  desktop or latop ?  a
> > > guess
> > >
> > > matt
> > >
> > > On Thu, 25 Aug 2005 sevans at rutherfordglobal.com wrote:
> > >
> > > > I have the exact same problem anyone have a solution?
> > > >
> > > > > Several times a week one of my printers gets "disabled" by CUPS, and
> printing doesn't work anymore until I manually "enable" this printer. It
> happens both with USB and network printers. I'm running CUPS 1.1.23, but the
> problem also happened with earlier versions of CUPS.
> > > > >
> > > > > This is how it looks like:
> > > > >
> > > > > Printer disabled:
> > > > >
> > > > > # lpstat -t
> > > > > scheduler is running
> > > > > system default destination: CANON
> > > > > device for CANON: usb:/dev/usb/lp0
> > > > > CANON accepting requests since Jan 01 00:00
> > > > > printer CANON disabled since Jan 01 00:00 -
> > > > >         Unable to send print file to printer: No such device
> > > > >
> > > > >
> > > > > As we can see, there is such a printer:
> > > > >
> > > > > # lsusb
> > > > > Bus 004 Device 004: ID 04a9:261b Canon, Inc.
> > > > > (...)
> > > > >
> > > > >
> > > > > So I enable the printer:
> > > > >
> > > > > # /usr/bin/enable CANON
> > > > >
> > > > >
> > > > > And immediately it begins to print again:
> > > > >
> > > > > # lpstat -t
> > > > > scheduler is running
> > > > > system default destination: CANON
> > > > > device for CANON: usb:/dev/usb/lp0
> > > > > CANON accepting requests since Jan 01 00:00
> > > > > printer CANON now printing CANON-1680.  enabled since Jan 01 00:00
> > > > >
> > > > >
> > > > > I wasn't able to trace this problem in the logs and what it happens.
> > > > >
> > > > > Is there a setting in CUPS configuration that would prevent this
> issue?
> > > > >
> > > > >
> > > > > Tomek
> > > > >
> > > >
> > > > _______________________________________________
> > > > cups mailing list
> > > > cups at easysw.com
> > > > http://lists.easysw.com/mailman/listinfo/cups
> > > >
> > >
> >
> > _______________________________________________
> > cups mailing list
> > cups at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups
> >
>





More information about the cups mailing list