Yes, with not-string ClassAds you don't need the
extra "'" around the _expression_, if it there is just one ClassAd you
If you want to compare more than 1 ClassAd or at
least one string ClassAd, you need an "'" at the beginning and at the end of
your _expression_, including your compared ClassAds.
condor_q -constraint ProcID==X --> works
condor_q -constraint 'ProcID==X' --> works
condor_q -constraint Owner=="X" --> doesn't work
condor_q -constraint 'Owner=="X"' --> works
condor_q -constraint 'ProcID==X && Owner=="X"' -->
----- Original Message -----
Sent: Monday, February 14, 2005 11:37
Subject: Re: [Condor-users] condor_q
-constraint for selfdeclared classAdsdoesn't work?
On Mon, Feb 14, 2005 at 03:47:40PM +0100, Thomas Lisson wrote:
> Ok, I just forgot the ' around my _expression_...
> condor_q -constraint 'Owner="XYZ"' works great. All my self
> ClassAds work fine, too.
> I was a bit
confused because (only one _expression_)
> condor_q -constraint ProcID=X
> condor_q -constraint Owner="XYZ" doesn't.
an integer, not a string, so it doesn't need quotes.
BTW, you probably
mean condor_q -constraint ProcID==X (note 2 equals