LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-11-2009, 09:35 AM   #1
Boomn4x4
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
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?
 
Old 02-15-2009, 02:53 PM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer Configuration: "Print file sent, waiting for printer to finish", JetDirect Ed-MtnBiker Fedora 3 02-23-2007 12:41 PM
printer configuration reena Linux - Networking 3 02-02-2007 12:49 AM
Printer configuration botnora Fedora - Installation 0 01-12-2005 06:58 PM
Re: Printer Configuration rahul_jain_9684 Linux - Hardware 0 07-25-2003 04:45 AM
how do i make redhat recognize my printer new printer driver Kilahchris Linux - General 2 03-04-2003 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration