cups printers disabled randomely

Shashank bhides at gmail.com
Fri May 15 15:31:00 UTC 2009


>Printer will randomly disable. Have to /usr/bin/enable the printer to
> continue printing.

I think I  read somewhere about a TIMEOUT option where printers a
disabled if they do not respond with the default (300 sec?) timeout.
But I could be wrong and you seem to have not luck with it either.

A script running with a high frequency to enable printers can be put in crond.

lpstat -t | grep disable > ${mytmp}
cat ${mytmp} | grep 'printer' | awk '{print $2}' > ${mytmp}.txt
for disabled_prn in `cat ${mytmp}.txt`
do
        debug "Disabled Printer         :${disabled_prn}"
        /usr/bin/enable ${disabled_prn}
        debug "Executing /usr/bin/enable ${disabled_prn} "
        email_sub="PRN::Disabled printer  ${disabled_prn} was enabled
on `hostname -s`, `date`"
        debug "Email SUB                :${email_sub}"
        email_sysad
done




More information about the fedora-list mailing list