Changeset 33671 for trunk/ippTasks/pstamp.pro
- Timestamp:
- Apr 3, 2012, 4:09:03 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/pstamp.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pstamp.pro
r32946 r33671 201 201 end 202 202 203 echo DEFINING PLABEL stuff 204 # keep a separate list of labels for request parsing 205 if ($?PLABEL:n == 0) set PLABEL:n = 0 206 set PLABEL:n = 0 207 208 macro add.parse.label 209 if ($0 != 2) 210 echo "USAGE: add.parse.label (label)" 211 break 212 end 213 if ($?PLABEL:n == 0) 214 list PLABEL -add $1 215 return 216 end 217 218 local found 219 $found = 0 220 for i 0 $PLABEL:n 221 if ($PLABEL:$i == $1) 222 $found = 1 223 echo "$PLABEL:$i set" 224 last 225 end 226 end 227 228 if ($found == 0) 229 list PLABEL -add $1 230 end 231 end 232 233 234 macro del.parse.label 235 if ($0 != 2) 236 echo "USAGE: del.parse.label (label)" 237 break 238 end 239 if ($?PLABEL:n == 0) 240 return 241 end 242 243 list PLABEL -del $1 244 end 245 246 macro show.parse.labels 247 if ($0 != 1) 248 echo "USAGE: show.parse.labels" 249 break 250 end 251 if ($?PLABEL:n == 0) 252 echo "no labels defined" 253 end 254 if ($PLABEL:n == 0) 255 echo "no labels defined" 256 end 257 258 local i 259 for i 0 $PLABEL:n 260 echo $PLABEL:$i 261 end 262 end 263 264 macro add_parse_labels 265 if ($0 != 2) 266 echo "Must pass in the command of interest, and this function will supplement" 267 stop 268 end 269 270 local command i 271 272 $command = $$1 273 274 # Only process the data with the specified label. 275 for i 0 $PLABEL:n 276 $command = $command -label $PLABEL:$i 277 end 278 279 $$1 = $command 280 end 281 282 echo DONE defineing plabel stuf 283 203 284 task pstamp.request.find 204 285 host local … … 261 342 end 262 343 add_poll_args run 263 add_poll_labels run 344 # add_poll_labels run 345 add_parse_labels run 264 346 # limit number of requests in the queue to avoid blocking everything 265 347 # when jobs take an infinite amount of time to parse … … 961 1043 962 1044 periods -poll $LOADPOLL 963 periods -exec 90964 periods -timeout 201045 periods -exec 60 1046 periods -timeout 120 965 1047 npending 1 966 1048
Note:
See TracChangeset
for help on using the changeset viewer.
