Cups Disables LPD Printer

crash3m crash3m at gmail.com
Thu Aug 3 13:07:50 PDT 2006


There is a little shorter way to do this, not that its the fix that I think should be in place...

!/bin/sh
if [ "`uname`" = "Linux" ]; then
	lpstat -t | grep disabled | awk '{printf("/usr/bin/enable %s\n", $2 )}'
fi

I've fiddled with timeouts until I got CTS and the printers are still disabled after 5 minutes :/

Matt


> Sven Jacobs wrote:
>
> > Hey Everybody,
> >
> > We have novell linux desktop 9.0 installed in our shops.
> > In some shops we use a ioprint+fast lpd style printserver
> >
> > the problem is that cups disables the printer.  It's not always so i can
> > not give any timings ...
> >
> > Novell linux Desktop 9.0
> > cups-1.1.20-108.11
> > IOPRINT+FAST
> >
> >
> > Is there a fix or work around for this problem
> Today you have to do something like this in the crontab:
>
>
> --8<----------
> cat /usr/cust/bin/start_printer
> #!/bin/bash
> ##############################################################################
> # /usr/local/sbin/enable_printers.sh
> # Beschreibung: Da die Drucker bei korrodin unter Cups zwar Auftr�e
> #               anstandslos annehmen, diese aber erst drucken, wenn
> #               die Drucker "enabled" werden, dieses Skript als Workarround:
> #               Es enables mintlich die vorhanden Drucker. Unsch�, aber
> #               wenn's hilft...
> ##############################################################################
>
>
> PRINTERS=$(lpstat -t | grep disable | /usr/bin/cut -d" " -f2)
>
> for PRINTER in $PRINTERS
> do
>         /usr/bin/enable $PRINTER
> done
>
> --8<----------
>
> regards
> Franz





More information about the cups mailing list