Man page - condor_transform_ads(1)
Packages contains this manual
- condor_job_router_info(1)
- condor_store_cred(1)
- condor_submit_dag(1)
- condor_stats(1)
- condor_top(1)
- gidd_alloc(1)
- condor_rmdir(1)
- condor_qsub(1)
- classad_eval(1)
- condor_install(1)
- condor_ping(1)
- condor_who(1)
- condor_rm(1)
- condor_router_rm(1)
- condor_upgrade_check(1)
- condor_reconfig(1)
- condor_gather_info(1)
- condor_annex(1)
- condor_vacate_job(1)
- get_htcondor(1)
- condor_preen(1)
- condor_master(1)
- condor_tail(1)
- condor_token_request_auto_approve(1)
- condor_restart(1)
- condor_continue(1)
- condor_update_machine_ad(1)
- classads(1)
- condor_evicted_files(1)
- condor_chirp(1)
- condor_q(1)
- condor_qedit(1)
- condor_test_token(1)
- condor_router_history(1)
- condor_history(1)
- condor_procd(1)
- condor_on(1)
- condor_status(1)
- condor_watch_q(1)
- condor_ssl_fingerprint(1)
- condor_token_fetch(1)
- condor_fetchlog(1)
- condor_submit(1)
- condor_token_request_list(1)
- condor_transfer_data(1)
- condor_hold(1)
- condor_wait(1)
- condor_ssh_to_job(1)
- condor_prio(1)
- condor_pool_job_report(1)
- condor_token_request(1)
- condor_config_val(1)
- condor_set_shutdown(1)
- condor_userprio(1)
- condor_adstash(1)
- condor_userlog(1)
- condor_sos(1)
- condor_gpu_discovery(1)
- condor_transform_ads(1)
- condor_findhost(1)
- condor_now(1)
- condor_updates_stats(1)
- condor_version(1)
- htcondor(1)
- condor_vacate(1)
- condor_run(1)
- condor_advertise(1)
- condor_suspend(1)
- procd_ctl(1)
- condor_router_q(1)
- condor_token_request_approve(1)
- condor_check_userlogs(1)
- condor_reschedule(1)
- condor_token_create(1)
- condor_dagman(1)
- condor_power(1)
- condor_drain(1)
- condor_release(1)
- condor_ssh_start(1)
- condor_urlfetch(1)
- condor_remote_cluster(1)
- condor_check_password(1)
- condor_token_list(1)
- condor_off(1)
- condor_configure(1)
apt-get install condor
Manual
CONDOR_TRANSFORM_ADS
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXIT STATUS
EXAMPLES
AUTHOR
COPYRIGHT
NAME
condor_transform_ads - HTCondor Manual
Transform ClassAds according to specified rules, and output the transformed ClassAds.
SYNOPSIS
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 .
DESCRIPTION
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.
OPTIONS
-help [rules | convert]
Display usage information and exit. -help rules displays information about the available transformation rules. -help convert displays information about the -convertoldroutes option.
-rules rules-file
Specifies the file containing definitions of the transformation rules, or configuration that declares a JOB_TRANSFORM_<name> or JOB_ROUTER_ROUTE_<name> variable for use in a subsequent -jobtransforms <name> or -jobroute <name> argument.
-jobtransforms name-list
A comma-separated list of more transform names. The transform rules will be read from a previous rules file or the configured JOB_TRANSFORM_<name> values
-jobroute name
A job route. The transform rules will be read from a previous rules file or the configured JOB_ROUTER_ROUTE_<name> values
-in[:<form>] infile
Specifies an input file containing ClassAd(s) to be transformed. <form> , if specified, is one of:
|
• |
long : traditional long form (default) |
|||
|
• |
xml : XML form |
|||
|
• |
json : JSON ClassAd form |
|||
|
• |
new : "new" ClassAd form without newlines |
|||
|
• |
auto : guess format by reading the input |
If - is specified for infile , input is read from stdin .
-out[:<form>[, nosort] outfile
Specifies an output file to receive the transformed ClassAd(s). <form> , if specified, is one of:
|
• |
long : traditional long form (default) |
|||
|
• |
xml : XML form |
|||
|
• |
json : JSON ClassAd form |
|||
|
• |
new : "new" ClassAd form without newlines |
|||
|
• |
auto : use the same format as the first input |
ClassAds are storted by attribute unless nosort is specified.
[ <key>=<value> ]
Assign key/value pairs before rules file is parsed; can be used to pass arguments to rules. (More detail needed here.)
|
-long |
Use long form for both input and output ClassAd(s). (This is the default.) |
||
|
-json |
Use JSON form for both input and output ClassAd(s). |
||
|
-xml |
Use XML form for both input and output ClassAd(s). |
-verbose
Verbose mode, echo to stderr the transform names as they are applied and individual transform rules as they are executed.
|
-terse |
Disable the -verbose option. |
||
|
-debug |
Causes debugging information to be sent to stderr , based on the value of the configuration variable TOOL_DEBUG . |
EXIT STATUS
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.
EXAMPLES
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
AUTHOR
HTCondor Team
COPYRIGHT
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.