LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   CUPS printer offline - how do I bring it online? (http://www.linuxquestions.org/questions/linux-hardware-18/cups-printer-offline-how-do-i-bring-it-online-810646/)

exactiv 05-28-2010 04:16 AM

CUPS printer offline - how do I bring it online?
 
Hi there,

I have a number of printers attached to my server. Once in a while, one of them goes offline. To get the printer working again I have to use printconf. In printconf, I select my printer, click edit, click done, click exit then I save my changes. When I'm back at a prompt the printer starts working again.

My question is this: printconf obviously re-initialises the printer. Is there a command I can run from the prompt to do the same?

Restarting CUPS doesn't work.

The reason for using a command rather than the printconf tool is that I want to script it so end users don't call me each time the printer stops working.

Thanks!

bigrigdriver 05-30-2010 02:42 PM

Read this: http://www.oit.uci.edu/dcslib/linux/...ve-config.html

1) In this article, the suggestion is made that you make a backup copy of your printconf file. It would be a simple matter to script the restoration of the printconf file.

2) The command you want is in the last sentence of the article.


All times are GMT -5. The time now is 01:07 PM.