Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: df equivalent in Perl

by cjf (Parson)
on Jun 25, 2002 at 22:36 UTC ( #177226=note: print w/ replies, xml ) Need Help??


in reply to df equivolent in Perl

Check out Filesys::DiskFree and Filesys::DiskSpace.

Update: Just found Filesys::Df, haven't used it yet though.

Update 2: Looks like grinder just beat me to Filesys::Df :). I tried it out though and it works nicely.


Comment on Re: df equivalent in Perl
Replies are listed 'Best First'.
Re: Re: df equivalent in Perl
by rob_au (Abbot) on Jun 25, 2002 at 22:44 UTC
    I would concur strongly with the comments of cjf directing attention to the Filesys::Df module which implements disk space checking via a statvfs call (via XS code within the Filesys::Statvfs module) - An example of usage of this module can be found on this site here.

    This module however is not wholly portable to Windows platforms, for which, the module Win32::AdminMisc may be more appropriate - See here for an example of this module in usage.

     

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://177226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2015-07-30 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls