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

Re: [condor-users] requiring a project code to start a job



On Thu, 08 Jul 2004 13:48:27 -0500  "David A. Kotz" wrote:

> > IsOwner = UWCS_START == False

this is wrong.

> 7/8 13:02:11 ERROR "Can't evaluate IsOwner" at line 962 in file
> Resource.C

if you do this:

> IsOwner = UWCS_START == False

it means you're refering to some ClassAd attribute somewhere called
"UWCS_START".  however, UWCS_START is really a config file macro in
your case.  so, you have two options:

1) use it as a macro:

   IsOwner = $(UWCS_START) == False

   this way, the stuff you defined as "UWCS_START" will just be
   inserted with plain-old string substitution right into the
   definition of IsOwner.  


2) stuff it into your startd's classad:

   STARTD_EXPRS = $(STARTD_EXPRS) UWCS_START

   (i'm using the fancy notation that appends "UWCS_START" to whatever
   you've currently got it set to, so you don't have to worry about
   clobbering other values from another part of your configuration).

   then, you could still use the "IsOwner = UWCS_START == False"
   you've got now...


the downside of #2 is that you'll start seeing "UWCS_START" in all
your machine ClassAd's, which you may not want.  so, i'd recommend
going the route of #1...

good luck,
-derek