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

Re: [HTCondor-users] $INT conversion failing in submit file



> I think you can do what you want as follows by adding the following line to your submit file:
> 
>    requirements = substr(Machine,0,1)=="e" && int(substr(Machine,1,3)) <= 16
> 
> You can test it first with condor_status like so:
> 
>    condor_status -cons "substr(Machine,0,1)==\"e\" && int(substr(Machine,1,3)) <= 16"
>   
> (note the quotation marks inside the expression are escaped with backslashes).
>

Opps!  I hit send to fast, I was actually testing the above in my pool where machines are named e001.xxx.xxx, e002.xxx.xxx.xxx, etc.  You will want something like

  requirements = substr(Machine,0,6)=="ARCWI-" && int(substr(Machine,6,2)) <= 16
 

regards,
Todd