[Mauiusers] command to find total number of jobs of a given user

Ole Holm Nielsen Ole.H.Nielsen at fysik.dtu.dk
Wed Jun 16 05:56:29 MDT 2010


Garrick Staples wrote:
>> We use the script "showuserjobs" which you can download from
>> ftp://ftp.fysik.dtu.dk/pub/Torque/showuserjobs
>> 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.

Thanks a lot for this suggestion, Garrick !

I updated the script in ftp://ftp.fysik.dtu.dk/pub/Torque/showuserjobs

Best regards,
Ole


More information about the mauiusers mailing list