thanks for the tip with regexps. Unfortunately, the way I have added it
to my job transform seems to have no effect so far.
The job transform should in principle format the Requirement string 
but still the resulting job's ad is the old one 
From the documentation on regexps I would assume that it should work -
but I am not sure, if 'Requirements' is a 'string target' (should be as
a class ad, or?). Scanning through target also should match and replace
Cheers and thanks,
JOB_TRANSFORM_NAMES = $(JOB_TRANSFORM_NAMES), FOOFORM
copy_Requirements = BaseRequirements
set_Requirements = regexps("OpSysAndVer\s*=\?*=\s*\"SL6\"",
BaseRequirements, "OpSysAndVer == \"CentOS7\"")
> condor_history -l JOB.ID
>> Requirements = ( OpSysAndVer == "SL6" ) && ( TARGET.Arch == "X86_64"
) && ...
(String pattern, String target, String substitute [ , String options
]) Uses the description of a regular _expression_ given by string pattern
to scan through the string target. When target is a regular _expression_
as described by pattern, the string substitute is returned, with
backslash expansion performed. If any argument is not a string, returns
On 2018-10-10 15:08, Michael Pelletier wrote:
> Seems like you're looking for "regexps()" - to substitute something in the requirements string.
> So you'd match the job with your requirements _expression_ where it's demanding SL6, and then your job transform would do something like this:
> Copy_requirements = RequiresScientificLinux6
> Requirements = regexps("OpSysAndVer\s*=\?*=\s*\"SL6\"", RequiresScientificLinux6, "OpSysAndVer == \"CentOS6\"")
> That ought to do the trick, I think.
> Michael V. Pelletier
> Information Technology
> Digital Transformation & Innovation
> Integrated Defense Systems
> Raytheon Company
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> The archives can be found at: