CONDOR_TRANSFORM_ADS(1) | HTCondor Manual | CONDOR_TRANSFORM_ADS(1) |
condor_transform_ads - HTCondor Manual
Transform ClassAds according to specified rules, and output the transformed ClassAds.
condor_transform_ads [-help [rules] ]
condor_transform_ads [-rules rules-file] [-jobtransforms name-list] [-jobroute route-name] [-in[:<form>] ** *infile*] [-out[:<form>[, nosort]] ** outfile] [<key>=<value> ] [-long ] [-json ] [-xml ] [-verbose ] [-terse ] [-debug ] [-unit-test ] [-testing ] [-convertoldroutes ] [infile1 ...infileN ]
Note that one or more transforms must be specified in the form of a rules file or a JOB_TRANSFORM_ or JOB_ROUTER_ROUTE_ name and at least one input file must be specified. Transforms will be applied in the order they are given on the command line. If a rules file has a TRANSFORM statement with arguments it must be the last rules file. If no output file is specified, output will be written to stdout.
condor_transform_ads reads ClassAds from a set of input files, transforms them according to rules defined in a rules files or read from configuration, and outputs the resulting transformed ClassAds.
See the classads/transforms:Classad Transforms section for a description of the transform language.
If - is specified for infile, input is read from stdin.
ClassAds are storted by attribute unless nosort is specified.
condor_transform_ads will exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.
Here's a simple example that transforms the given input ClassAds according to the given rules:
# File: my_input ResidentSetSize = 500 DiskUsage = 2500000 NumCkpts = 0 TransferrErr = false Err = "/dev/null" # File: my_rules EVALSET MemoryUsage ( ResidentSetSize / 100 ) EVALMACRO WantDisk = ( DiskUsage * 2 ) SET RequestDisk ( $(WantDisk) / 1024 ) RENAME NumCkpts NumCheckPoints DELETE /(.+)Err/ # Command: condor_transform_ads -rules my_rules -in my_input # Output: DiskUsage = 2500000 Err = "/dev/null" MemoryUsage = 5 NumCheckPoints = 0 RequestDisk = ( 5000000 / 1024 ) ResidentSetSize = 500
HTCondor Team
1990-2024, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.
August 25, 2024 |