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