LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2010, 07:22 AM   #1
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Getting *all* quotas in Perl


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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
quotas.. shishirkotkar Linux - Newbie 1 02-07-2008 09:59 PM
Help with quotas 0p3r4 Linux - General 2 10-27-2005 03:35 PM
perl: get quotas and print on webpage hamish Programming 1 01-19-2005 11:52 PM
Quotas andy7t Linux - General 1 12-15-2004 03:14 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration