Re: [Condor-users] condor_q -constraint for selfdeclared classAdsdoesn't work?


Date: Tue, 15 Feb 2005 00:56:44 +0100
From: Thomas Lisson <lisson@xxxxxxxxxxxxxxxxx>
Subject: Re: [Condor-users] condor_q -constraint for selfdeclared classAdsdoesn't work?
Yes, with not-string ClassAds you don't need the extra "'" around the _expression_, if it there is just one ClassAd you compare.
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.
example:
 
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"' --> works
 
etc...
 
greetz
Thomas Lisson
RWTH-Grid
----- Original Message -----
Sent: Monday, February 14, 2005 11:37 PM
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:
> Hello
>
> Ok, I just forgot the ' around my _expression_... so
> condor_q -constraint 'Owner="XYZ"' works great. All my self declared
> ClassAds work fine, too.
>
> I was a bit confused because (only one _expression_)
> condor_q -constraint ProcID=X works, and
> condor_q -constraint Owner="XYZ" doesn't.

ProcID is an integer, not a string, so it doesn't need quotes.

BTW, you probably mean condor_q -constraint ProcID==X (note 2 equals signs)

[← Prev in Thread] Current Thread [Next in Thread→]