in reply to disk usage script done only in Perl w/o system call
Does that help get you started?use File::Find; my %blocks_by_user; find sub { my @stat = lstat; $blocks_by_user{$stat[4]} += $stat[12]; }, "/";
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: disk usage script done only in Perl w/o system call
by slok (Acolyte) on Apr 13, 2001 at 19:48 UTC |