1condor_transform_ads(1) General Commands Manual condor_transform_ads(1)
2
3
4
6 condor_transform_adsTransform ClassAds according to specified rules,
7 and output the transformed ClassAds.
8
10 condor_transform_ads[-help [rules]]
11
12 condor_transform_ads-rules rules-file[-in[:<form>] infile]
13 [-out[:<form>[, nosort]] outfile] [<key>=<value>] [-long] [-json]
14 [-xml] [-verbose] [-terse] [-debug] [-unit-test] [-testing] [-conver‐
15 toldroutes] [infile1 ...infileN]
16
17 Note that exactly one rules file, and at least one input file, must be
18 specified. If no output file is specified, output will be written to
19 stdout.
20
22 condor_transform_adsreads ClassAds from a set of input files, trans‐
23 forms them according to rules defined in a rules file, and outputs the
24 resulting transformed ClassAds.
25
26 See https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=TjsAdTransform‐
27 Languagefor a description of the transform language.
28
30 -help [rules]
31
32 Display usage information and exit. -help rulesdisplays information
33 about the available transformation rules.
34
35
36
37 -rules rules-file
38
39 Specifies the file containing definitions of the transformation
40 rules.
41
42
43
44 -in[:<form>] infile
45
46 Specifies an input file containing ClassAd(s) to be transformed.
47 <form>, if specified, is one of:
48
49 * long: traditional long form (default)
50
51 * xml: XML form
52
53 * json: JSON ClassAd form
54
55 * new: "new" ClassAd form without newlines
56
57 * auto: guess format by reading the input If -is specified for
58 infile, input is read from stdin.
59
60
61
62 -out[:<form>[, nosort] outfile
63
64 Specifies an output file to receive the transformed ClassAd(s).
65 <form>, if specified, is one of:
66
67 * long: traditional long form (default)
68
69 * xml: XML form
70
71 * json: JSON ClassAd form
72
73 * new: "new" ClassAd form without newlines
74
75 * auto: use the same format as the first input ClassAds are
76 storted by attribute unless nosortis specified.
77
78
79
80 [<key>=<value>]
81
82 Assign key/value pairs before rules file is parsed; can be used to
83 pass arguments to rules. (More detail needed here.)
84
85
86
87 -long
88
89 Use long form for both input and output ClassAd(s). (This is the
90 default.)
91
92
93
94 -json
95
96 Use JSON form for both input and output ClassAd(s).
97
98
99
100 -xml
101
102 Use XML form for both input and output ClassAd(s).
103
104
105
106 -verbose
107
108 Verbose mode, echo transform rules as they are executed.
109
110
111
112 -terse
113
114 Disable the -verboseoption.
115
116
117
118 -debug
119
120 More information needed here.
121
122
123
124 -unit-test
125
126 More information needed here.
127
128
129
130 -testing
131
132 More information needed here.
133
134
135
136 -convertoldroutes
137
138 More information needed here.
139
140
141
143 condor_transform_adswill exit with a status value of 0 (zero) upon suc‐
144 cess, and it will exit with the value 1 (one) upon failure.
145
147 Here's a simple example that transforms the given input ClassAds
148 according to the given rules:
149
150 # File: my_input
151 ResidentSetSize = 500
152 DiskUsage = 2500000
153 NumCkpts = 0
154 TransferrErr = false
155 Err = "/dev/null"
156
157 # File: my_rules
158 EVALSET MemoryUsage ( ResidentSetSize / 100 )
159 EVALMACRO WantDisk = ( DiskUsage * 2 )
160 SET RequestDisk ( $(WantDisk) / 1024 )
161 RENAME NumCkpts NumCheckPoints
162 DELETE /(.+)Err/
163
164 # Command:
165 condor_transform_ads -rules my_rules -in my_input
166
167 # Output:
168 DiskUsage = 2500000
169 Err = "/dev/null"
170 MemoryUsage = 5
171 NumCheckPoints = 0
172 RequestDisk = ( 5000000 / 1024 )
173 ResidentSetSize = 500
174
176 Center for High Throughput Computing, University of Wiscon‐
177 sin–Madison
178
180 Copyright © 1990-2019 Center for High Throughput Computing, Computer
181 Sciences Department, University of Wisconsin-Madison, Madison, WI. All
182 Rights Reserved. Licensed under the Apache License, Version 2.0.
183
184
185
186 date condor_transform_ads(1)