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

[Condor-users] Question Regarding Configuration File Syntax



I have a question about the use of the $() syntax in the configuration
files.  The following SUSPEND and PREEMPT expressions are taken directly
from the condor 6.6 manual, section 3.6.9:

SUSPEND         = ( $(KeyboardBusy) || \
                 ( (CpuBusyTime > 2 * $(MINUTE)) \
                    && $(ActivationTimer) > 90 ) )

In the manual, both KeyboardBusy and CpuBusyTime appear in section
3.6.9.1 as "macros to help write the expressions clearly."  On the first
line of the SUSPEND macro, KeyboardBusy is referenced using $() on the
second line, CpuBusyTime is referenced without the $().  I'm very
confused by this.

PREEMPT	        = ( ((Activity == "Suspended") && \
                    ($(ActivityTimer) > $(MaxSuspendTime))) \
                    || (SUSPEND && (WANT_SUSPEND == False)) )

Why aren't $(SUSPEND) and $(WANT_SUSPEND) required in the PREEMPT
expression?

Any insight on the proper use of $() is greatly appreciated.

Thanks,

Bryan Maher
Carnegie Mellon University