6

Getting *all* quotas in Perl

view full story
linux-howto

http://www.linuxquestions.org – What can I use to get a list of all disk quotas on a filesystem in Perl? I want equivalent functionality to shell command `repquota /mount/point` with the parsing work done for me already. I imagine someone has done this before but I can't find it. The Quota module only allows me to get the quota on a device for one UID, and all my users are remote (not in /etc/passwd) so I don't have an easy list of UIDs, and searching the filesystem for UIDs would be silly. Am I stuck running and parsing `repquota /dev/name` myself from my Perl script? (HowTos)