Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-22-2011, 12:30 PM   #1
LQ Newbie
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Rep: Reputation: Disabled
Question CUPSENABLEing a lot of printers at once

Hey guys, did I post this in the wrong forum area? Seventy-something people looked at this, but not a peep from anyone?
I'm thinking that a script might work, but I don't know how to parse the printer name from the output of lpstat -a, for example. If I could get the printer name into a variable then I could put together a command, something like cupsenable $printer; cupsaccept $printer for each printer found. Isn't there something like a chomp command?
Thanks again,

So it seems if I 'Go Advanced' whilst editing my post, it all goes away! My original question was: I'm moving from HP-UX to RHEL6 and have defined >100 printers via the lpadmin command. I'm looking for the means of automating the task of cupsenable and cupsaccept for all the printers at once.

Last edited by BradMarks; 11-22-2011 at 03:07 PM.
Old 01-12-2012, 06:12 PM   #2
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: openSUSE Leap 42.1 (x86_64)
Posts: 116

Rep: Reputation: 9
Many here Non-Technical with simple problems.

Your issue seems more complicated than most in Newbies's you may assistance easier to obtain in a more a specific topic like Linux Servers.



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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Noobie in need of a lot of help donang72 Linux - Networking 11 06-17-2007 04:57 PM
recommendation on photo printers and general purpose printers raminolta Linux - Hardware 3 01-21-2004 12:27 PM
Thanks a Lot! XPediTioN Slackware 0 07-11-2003 04:51 PM
There's a lot of Stephanies about... stephstellar General 3 02-03-2003 07:11 AM
A lot of users!?? FreakboY Linux - Newbie 1 10-13-2002 03:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 AM.

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