LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Redhat Printer Configuration (https://www.linuxquestions.org/questions/linux-general-1/redhat-printer-configuration-703886/)

Boomn4x4 02-11-2009 09:35 AM

Redhat Printer Configuration
 
I'm attempting to automate a printer configuration via a perl script. The Fedora OS was simple, update printers.conf and cycle cups. Redhat is giving me more of a problem. The only way I have seen that this is possible is to run printconf-tui. I can use the perl script to execute printconf, but the user would still need to tab through the options, visually check the hostname, and manually fix it if necessary... this is not very automated.


Basically, where can I programaticaly view the printers host name, and can I simply change that file if it needs changed? Is there a system command I can send to view the host addres and change the host address?

cmnorton 02-15-2009 02:53 PM

printers.conf
 
You should be able to parse whatever you need from /etc/cups/printers.conf. Your script will have to run as root. I am not sure whether or not you have to restart cups, if you edit printers.conf. It would not hurt to restart it anyway.


All times are GMT -5. The time now is 11:17 AM.