[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] job transform: change requirement condition?

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