Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] job transform: change requirement condition?
- Date: Wed, 10 Oct 2018 13:08:29 +0000
- From: Michael Pelletier <Michael.V.Pelletier@xxxxxxxxxxxx>
- Subject: 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