[cups.general] Getting a list of printers without classes

Michael R Sweet msweet at apple.com
Thu Nov 13 09:30:13 PST 2008


Brandon wrote:
> This should be easy since the cups page does it, but I can't find the command to return a list of the printers. lpstat returns the classes for some reason when I do -p. So what's the command to just list the printer and the status for each one?
> 
> I noticed I could just do lpstat -v to get the list of printers and that classes have "///dev/null" as their device. Then I could use each of those that aren't null and do lpstat -p <list of printers>. Is there a better way?

The command-line tools currently do not provide a way to exclude
classes from the listing - this is by design so that classes are
available in all programs.

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list