Automatic printer restart
Franz Pförtsch
franz.pfoertsch at brose.net
Wed Apr 13 23:36:06 PDT 2005
do something like this in a cronjob:
---8<-------------------------
#!/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
Anonymous wrote:
> Hallo! Is there an opportunity to set the cups printer so, that it will
> start printer automatically after the it goes online? Currently if the
> printer is off and I send a job to it, the printer goes into offline state
> and I have to restart it manually.
More information about the cups
mailing list