Known to work with version 8.2 -If you want each machine that has the special software installed advertise its availability in its machine ClassAd, and you want to *detect* availability in your configuration, you can do this with STARTD Cron or (beginning with HTCondor Version 8.2, you can do this with a config script. +If you want each machine that has the special software installed to advertise its availability in its machine ClassAd; and you want to *detect* availability in your configuration, you can do this with a config script in HTCondor 8.2 and later. (prior to 8.2 you must use STARTD Cron) -Lets say you want to use the attribute =HAS_PYTHON= in the STARTD, and you want to set it's value to true when the software is determined to be present. Then you would use the following configuration +Lets say you want to use the attribute =HAS_PYTHON= in to indicate that the machine has python installed. Then you could use the following configuration {code} STARTD_ATTRS = HAS_PYTHON $(STARTD_ATTRS) @@ -27,7 +27,7 @@ Because the =check_for_python.cmd = script will be executed each time any HTCondor daemon starts or is reconfigured, and any time a HTCondor tool such as condor_status is run, you may want to configure the script to run only in the STARTD. -You can do this by wrapping the above configuration statements in an if block like this +You can do this by wrapping the above configuration statements in an if block like this. *use this configuration instead* {code} if $(IsStartd) @@ -35,3 +35,5 @@ include : $(LIBEXEC)/check_for_python.cmd | endif {endcode} + +You should be aware, if you use the above configuration with if/endif. Then the script will not execute when you run =condor_config_val= unless you pass it the =-subsystem startd= argument.