[cups.bugs] [LOW] STR #2843: lpstat -o <printer> is slow while lpstat -o is fast

Robert Bossecker cps-rb at bossecker.de
Mon Jun 2 03:25:45 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When querying a printer with lpstat -o <printername> it took up to several
seconds to get the result, while a plain "lpstat -o" returns with the
complete spooljob list within 0.0x seconds, sometimes 0.1xx seconds.

So my workaround is to use the following construct

lpstat -o | grep "^<printer>-"

Link: http://www.cups.org/str.php?L2843
Version: 1.3.7





More information about the cups-devel mailing list