Cups stops
ekkard gerlach
jack at aiai.de
Wed Jun 29 07:28:12 PDT 2005
Marc Hansen wrote:
> Hi,
> sometimes the Printerdämon stops a printqueue. Is it possible to stop this
> mechanism, so I don't have to restart the Printerqueue?
#!/bin/sh
for i in $(lpstat -p|grep disabled|cut -d' ' -f2); do echo "Enabled $i";
/usr/bin/cupsenable $i; done
for i in $(lpstat -a|grep not|cut -d' ' -f1); do echo "Accepting $i";
/usr/sbin/cupsaccept $i; done
statt cupsenable muß bei Suse lpadmin -p druckername -E rein.
crontab:
-* * * * * root /usr/local/bin/enable_printers >/dev/null
#!/bin/sh
for printer in `lpstat -p | grep 'disabled since' | awk '{print $2}'`; do
/usr/sbin/lpadmin -p $printer -E
echo "Printer " $printer " enabled" > /dev/tty11
done
More information about the cups
mailing list