Cups stops
Marc Hansen
Marcliste at gmx.de
Wed Jun 29 23:21:29 PDT 2005
ekkard gerlach wrote:
> 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
DANKE!
Marc
More information about the cups
mailing list