Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Quota tricks in perl
- Date: Wed, 8 May 2002 18:53:45 +0900
- From: Matt Doughty <mdoughty@example.com>
- Subject: Re: [tlug] Quota tricks in perl
- References: <20020508184323.D8919@example.com>
- User-agent: Mutt/1.2.4i-jp0
On Wed, May 08, 2002 at 06:43:23PM +0900, Jonathan Byrne wrote: > I've seen several perl scripts for looking at (or even > manipuulating) quotas, but they were all missing one > trick I want: to find the owner of each directory > below the current one and check that user's quota and usage, so > I need to modify one for that little bit. > > I was thinking that the way to do this is to do the equivalent > of ls -l in the current directory, split that line on whitespace, > and extract the owner, but haven't been able to find the way to > do that. Anyone know where I can find instructions for this, or > a ready-made one? Or of course, a better way to do it if I'm > all wet here :-) > > Shell-script is OK, too, but I'm more familiar with perl. > > Tx, > > Jonathan perldoc File::Find perldoc -f stat that should give you everything you need to do what you want in perl. If that leaves you a bit lost let me know and I will try to hack up a script it should be fun. --Matt -- "WWJD? JWRTFM!!!" -- seen on /.
- References:
- [tlug] Quota tricks in perl
- From: Jonathan Byrne
Home | Main Index | Thread Index
- Prev by Date: [tlug] Argh ... no luck installing XFS ... help
- Next by Date: Re: [tlug] PLEASE READ--I may have sent you a Virus!
- Previous by thread: [tlug] Quota tricks in perl
- Next by thread: AW: [tlug] fuser
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links