Getting a list of printers without classes

Brandon warcraftthreeft at sbcglobal.net
Thu Nov 13 06:55:03 PST 2008


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?




More information about the cups mailing list