[gold-users] API Question

Kevin Van Workum vanw at tticluster.com
Tue Apr 28 08:15:33 MDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/gold-users/attachments/20090428/0a1c75d0/attachment.html 


More information about the gold-users mailing list