[gold-users] API Question

Kevin Van Workum vanw at tticluster.com
Tue Apr 28 09:24:28 MDT 2009


OK, now how do I group Conditions? I'd like to do something like:

(User==mike || User==bob) && (EndTime>=2009-04-01 && EndTime<=2009-05-01)

Kevin

On Tue, Apr 28, 2009 at 10:15 AM, Kevin Van Workum <vanw at tticluster.com>wrote:

> Figured it out after looking at Request.pm:
>
> for my $user (@users) {
>    $request->setCondition("User, $user, ,"Match", "Or");
>
> }
>
>
>
> On Tue, Apr 28, 2009 at 9:44 AM, Kevin Van Workum <vanw at tticluster.com>wrote:
>
>> Hi,
>>
>> I'm writing a perl script to expand the functionality of glsjob for my
>> users. I'd like to be able to list the jobs for more than one user, e.g.
>> glsjob -u mike -u bob. To get a single user I can do:
>>
>> $request->setCondition("User", $user);
>>
>> but how do I do the equivalent of:
>>
>> goldsh Job Query User==mike || User==bob
>>
>> using the API?
>>
>> Something like this maybe:
>>
>> for my $user (@users) {
>>    $request->setCondition("User, $user, "OR");
>> }
>>
>>
>>
>> --
>> Kevin Van Workum, Ph.D.
>>
>
>
>
> --
> Kevin Van Workum, Ph.D.
> Tsunamic Technologies Inc.
> Vice President
> www.ClusterOnDemand.com
> 877-492-8027 x11
> ONLINE COMPUTER CLUSTERS
>



-- 
Kevin Van Workum, Ph.D.
Tsunamic Technologies Inc.
Vice President
www.ClusterOnDemand.com
877-492-8027 x11
ONLINE COMPUTER CLUSTERS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/gold-users/attachments/20090428/a238590f/attachment.html 


More information about the gold-users mailing list