david wrote:
> Dan Muey wrote:
>
> try Filesys::DiskFree
>
> #!/usr/bin/perl -w
> use strict;
>
> use Filesys::DiskFree;
>
> my $h = Filesys::DiskFree->new;
>
> $h->df;
> $h->device('/usr');
>
> print "/usr has ",$h->avail('/usr')," bytes available\n";
>
> __END__
>
> prints:
>
> /usr has
> Dan Muey wrote:
> >
> > Thanks. What I really want to do is avoid system commands
> completely.
> > I could always traverse the directory adding the size of each file
> > together and do that all in Perl with no system commands
> but I figured
> > there'd already be a Module or something li
Dan Muey wrote:
> Howdy group.
>
> I have a need to get the size of a directory.
> I could just execute unix's du command (my $sz = `du -sh /usr`;)
> but was wondering if there's a better way to do it that is
> more portable.
> I looked on cpan but didn't see anythign that jumped out at me.
There
Dan Muey wrote:
>
>> On Tuesday, Nov 18, 2003, at 09:20 US/Pacific, Dan Muey wrote:
>>
>> > Howdy group.
>> >
>> > I have a need to get the size of a directory.
>> > I could just execute unix's du command (my $sz = `du -sh
>> /usr`;) but
>> > was wondering if there's a better way to do it that i
On Tuesday, Nov 18, 2003, at 09:35 US/Pacific, Dan Muey wrote:
[..]
Thanks. What I really want to do is avoid system commands completely.
I could always traverse the directory adding the size of each file
together and do that all in Perl with no system commands but I figured
there'd already be a Mo
Dan Muey wrote:
>
> Thanks. What I really want to do is avoid system commands completely.
> I could always traverse the directory adding the size of each file
> together and do that all in Perl with no system commands but I figured
> there'd already be a Module or something like this, so I want to
> On Tuesday, Nov 18, 2003, at 09:20 US/Pacific, Dan Muey wrote:
>
> > Howdy group.
> >
> > I have a need to get the size of a directory.
> > I could just execute unix's du command (my $sz = `du -sh
> /usr`;) but
> > was wondering if there's a better way to do it that is more
> portable.
> > I
On Tuesday, Nov 18, 2003, at 09:20 US/Pacific, Dan Muey wrote:
Howdy group.
I have a need to get the size of a directory.
I could just execute unix's du command (my $sz = `du -sh /usr`;)
but was wondering if there's a better way to do it that is more
portable.
I looked on cpan but didn't see any