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

Re: [Condor-users] version matching



John Kewley wrote:
If I match as follows:
REQUIREMENTS = ( ... && (CondorVersion == "$CondorVersion: 6.6.6 Jul 26 2004
$") )
it runs on machines with both 6.6.5 and 6.6.6 versions of condor

Look in a job Classad with condor_q -l: notice that it has CondorVersion defined in it. You'll want to use TARGET.CondorVersion to say that you want to look at the CondorVersion in the computer. I'm pretty sure that making that change will work for you.


and if I match like this (in a vain hope of avoiding potential macro
substitution):
REQUIREMENTS = ( ... && (CondorVersion == '$CondorVersion: 6.6.6 Jul 26 2004
$') )

Macro substitution won't occur. It failed because single quotes do not act like quotes in ClassAds.


-alain