Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Condor-users] Question Regarding Configuration File Syntax
- Date: Fri, 29 Jul 2005 09:38:12 -0400
- From: "Bryan S. Maher" <Bryan.Maher@xxxxxxxxxx>
- Subject: RE: [Condor-users] Question Regarding Configuration File Syntax
Matt, Derek:
Thanks for your help.
-Bryan
-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Matt Hope
Sent: Friday, July 29, 2005 3:13 AM
To: Condor-Users Mail List
Subject: Re: [Condor-users] Question Regarding Configuration File Syntax
On 7/29/05, Derek Wright <wright@xxxxxxxxxxx> wrote:
>
> macros are anything you put in the config file that you refer to with
> $() to do a simple text substitution. in general, macros themselves
> are not things condor knows about and looks for, but are used to help
> define things which condor is looking for from the config file.
And on that note remember that $(Foo) is simple text substitution
rather than seperate evaluation so
Foo = TARGET.Bar =?= "Flibble"
then
RANK = $(OTHER_RANK) + ($(Foo) * 2)
then it macro expands to
RANK = $(OTHER_RANK) + (TARGET.Bar =?= "Flibble" * 2)
Then the * binds tighter than the =?= and you get no boost from having
put
+Bar = "Flibble" in your submit file :)
if you use these macros as expression like properties then either get
in the habit of writing
($(Foo)) * x
or make the macro
Foo = ( whatever )
this should avoid nasty head scratching
Matt
_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users