]> git.ipfire.org Git - thirdparty/cups.git/blame - examples/get-completed-jobs.test
Changelog
[thirdparty/cups.git] / examples / get-completed-jobs.test
CommitLineData
191be31c 1# Get list of completed jobs.
aaf19ab0
MS
2#
3# Usage:
4#
39ff2fe7 5# ./ipptool printer-uri get-completed-jobs.test
aaf19ab0
MS
6{
7 # The name of the test...
8 NAME "Get completed jobs"
9
10 # The operation to use
11 OPERATION Get-Jobs
12
13 # Attributes, starting in the operation group...
14 GROUP operation-attributes-tag
15 ATTR charset attributes-charset utf-8
16 ATTR language attributes-natural-language en
17 ATTR uri printer-uri $uri
18 ATTR keyword which-jobs completed
19 ATTR keyword requested-attributes
92df50e6 20 job-id,job-uri,job-state,job-state-reasons,job-name,job-originating-user-name,job-media-sheets-completed
aaf19ab0
MS
21
22 # What statuses are OK?
23 STATUS successful-ok
24
25 # What attributes to display
26 DISPLAY job-id
39ff2fe7 27 DISPLAY job-state
aaf19ab0 28 DISPLAY job-name
aaf19ab0 29 DISPLAY job-originating-user-name
39ff2fe7 30 DISPLAY job-media-sheets-completed
aaf19ab0 31}