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

Re: [Condor-users] Maximum length of the requirements expression



At 09:53 AM 8/17/2006, Steffen Grunewald wrote:
On Thu, Aug 17, 2006 at 09:28:06AM -0500, Greg Thain wrote:
> Steffen Grunewald wrote:
>
> > It indeed would be very helpful if there was a "regular expression match"
> > like machine ~= "machine\d*[1237-9]" ... is there a wishlist somewhere?
>
> Condor 6.8 does have regexp support in classads, so if you can construct
>   a concise regexp to match machines, this can also solve this problem.
>
> something like
>
> requirements = regexp("machine\d[1-9]", Machine) && opsys == "LINUX"
>
> might do the trick.

This is great! I must have missed it completely (tracking all the Release notes
is a nioce job if you've got nothing else to do b)


;)

Glad you like! Condor v6.8.0 added a lot of really nifty built-in ClassAd functions: if/then/else conditionals (my favorite!), regular expressions, lists, string manipulation, regular expression substitution, rounding functions, time functions... really useful stuff. The regular expression stuff is all PCRE (Perl Compatible Regular Expressions).

See section 4.1.1.4 of the v6.8.0 Condor Manual
  http://www.cs.wisc.edu/condor/manual/v6.8/4_1Condor_s_ClassAd.html#SECTION00511400000000000000
for documentation on a bunch of them. I think a few are still being documented (the v6.8.0 documentation is a bit behind, we hope to be caught up soon), but certainly plenty already there to get you rolling.

-Todd


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Todd Tannenbaum                       University of Wisconsin-Madison
Condor Project Research               Department of Computer Sciences
tannenba@xxxxxxxxxxx                  1210 W. Dayton St. Rm #4257
http://www.cs.wisc.edu/~tannenba      Madison, WI 53706-1685
Phone: (608) 263-7132  FAX: (608) 262-9777