[gold-users] API Question

Kevin Van Workum vanw at tticluster.com
Tue Apr 28 07:44:58 MDT 2009


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

More information about the gold-users mailing list