Feature resquest extend lpstat job info

EmanuelSan at gmail.com EmanuelSan at gmail.com
Tue Feb 7 05:35:17 PST 2012


> ipptool is a user command in CUPS 1.5 and later.


I get the binary ipptool-static from CUPS 1.5 and tested it on RedHat 6.2 with CUPS 1.4.2. I would really like the output (in text mode) was with tab separated fields.

./ipptool-static ipp://localhost/printers/Printer01 get-jobs-ems.test
job-id job-state    job-name                               job-originating-user-name job-priority job-k-octets copies page-count-informed time-at-creation
------ ------------ -------------------------------------- ------------------------- ------------ ------------ ------ ------------------- ----------------
106    pending-held Resolv.conf com 2 copias               ASCYF3                    78           1            2      6                   1328123899
113    pending-held Make file 3 cópias 2 páginas         ASCYF3                    78           3            3      2                   1328560016
114    pending-held Make file 5 cópias 3 páginas         ASCYF3                    78           3            5      3                   1328560441
115    pending-held hosts file, 3 copies, 13 pages, pri 78 ASCYF3                    78           17           3      13                  1328560930
116    pending-held hosts file, 3 copies, 13 pages, pri 78 ASCYF3                    78           17           3      13                  1328564492
117    pending-held hosts file, 5 copies, 13 pages, pri 78 cyf3                      78           17           5      13                  1328564553
99     pending-held resolv.conf                            ASCYF3                    50           1            3      1                   1328049310
105    pending-held resolv.conf                            ASCYF3                    50           1            2      6                   1328123760



Here my get-jobs-ems.test:

{
        # The name of the test...
        NAME "Get pending jobs"

        # The operation to use
        OPERATION Get-Jobs

        # Attributes, starting in the operation group...
        GROUP operation-attributes-tag
        ATTR charset attributes-charset utf-8
        ATTR language attributes-natural-language en
        ATTR uri printer-uri $uri
        ATTR keyword requested-attributes
             job-id,job-state,job-name,job-originating-user-name,job-priority,copies,page-count-informed,job-k-octets,time-at-creation

        # What statuses are OK?
        STATUS successful-ok

        # What attributes to display
        DISPLAY job-id
        DISPLAY job-state
        DISPLAY job-name
        DISPLAY job-originating-user-name
        DISPLAY job-priority
        DISPLAY job-k-octets
        DISPLAY copies
        DISPLAY page-count-informed
        DISPLAY time-at-creation
}





More information about the cups-devel mailing list