Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Making a boolean classad expression from an integer compare
- Date: Fri, 6 Jun 2014 09:26:54 -0500
- From: Brian Bockelman <bbockelm@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Making a boolean classad expression from an integer compare
Hi Steve,
Where is this? A config file? Submit file? Job classad?
My gut is:
ISSLF5 = OpSysMajorVer =?= 5
but it might differ slightly depending on the context (config files, submit files, and classads have three different syntax rules ;).
Brian
On Jun 6, 2014, at 9:23 AM, Steven Timm <timm@xxxxxxxx> wrote:
>
> In the past my condor pool has had two boolean classad
> expressions defined, ISSLF6 and ISSLF5
> which are true depending on the major version of the linux
> operating system, 6 or 5 respectively.
>
> I recently learned of the variable OpSysMajorVer
>
> i.e.
> OpSysMajorVer==5
> or
> OpSysMajorVer==6
>
> I would like to set the boolean value ISSLF5 based on that
>
> ISSLF5= "OpSysMajorVer==5"
>
> The syntax above, however sets it to a string.. how do I
> capture the true/false of the == and assign it to a True/False
> in a classad expression?
>
> Steve
>
> ------------------------------------------------------------------
> Steven C. Timm, Ph.D (630) 840-8525
> timm@xxxxxxxx http://home.fnal.gov/~timm/
> Fermilab Scientific Computing Division, Scientific Computing Services Quad.
> Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/