[Mauiusers] command to find total number of jobs of a given user
garrick at usc.edu
Tue Jun 15 14:34:22 MDT 2010
On Tue, Jun 15, 2010 at 09:42:39PM +0200, Ole Holm Nielsen alleged:
> Rahul Nabar<rpnabar at gmail.com> wrote:
> > Is there a torque / maui command that can allow me to find the total
> > number of jobs / nodes occupied by a certain user at any point of
> > time? Couldn't see a way out by using qstat, showq or diagnose but
> > maybe I am missing the obvious.
> We use the script "showuserjobs" which you can download from
> This script parses the output of "showq" and reads user/group
> information from /etc/passwd and /etc/group. The output may
Instead of reading /etc/passwd and /etc/group directly, consider using the
commands 'getent passwd' and 'getent group'. It would allow the script to work
in NIS, LDAP, etc. environments.
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California
Life is Good!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/mauiusers/attachments/20100615/0f6d2d66/attachment.bin
More information about the mauiusers