Re: cups disabled drucker automatisch
Hallo zusammen,
> Ich nicht. Aber ich hab mir nen Workaround gebastelt, da Cups die
> Drucker auch deaktiviert, wenn man kein Papier oder Papierstau im
> Drucker war.
Danke für das Skript. Manchmal spornt einen ja so ein eigenes Posting
an, nochmal weiter zu suchen. Im Forum von Cups bin ich fündig geworden:
http://www.cups.org/newsgroups.php?s21+gcups.general+v28+T0+Qdisable
1. Cups kann derzeit (Version 1.1.23 aus Sarge) dieses Feature nicht
abschalten.
2. Ab Version 1.2 gibt's folgendes:
CUPS 1.2 will add notification support (it will tell you when a
> printer goes down) and error policies so that you can tell CUPS to
> retry errors like this...
3. Die (nicht ganz feine aber wirksame) Lösung besteht, wie auch in
Deiner Lösung, in einem cron-job, der nach diabled-Druckern sucht und
diese enabled:
*/5 * * * * lpstat -p|grep disabled|while read a b c;\
do /usr/bin/enable $b;done >/dev/null 2>&1
Hier allerdings ohne echo ;)
hth
Hiro
--
Hi! I'm a .sig virus! Copy me to your .sig!
Reply to: