For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > February 2007 > How to reinvent the linux "df" command









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to reinvent the linux "df" command
Siegfried

2007-02-16, 6:59 pm

Can someone suggest where I would look to reinvent "df" with perl? The "df"
command enumerates all the drives and partitions and interrogates them for
the amount of disk space total, used and available. Is there an OS neutral
way to write this program? I hope so. If not, this will be running on
xubuntu (linux).

Thanks,

Sigfried


nobull67@gmail.com

2007-02-16, 6:59 pm

On Feb 16, 5:12 pm, siegfr...@heintze.com (Siegfried) wrote:
> Can someone suggest where I would look


CPAN!

CPAN is always the first place to look for a Perl module.

> to reinvent "df" with perl?


Filesys::Df

> Is there an OS neutral way to write this program?


Not really, see Filesys::DfPortable which is really just an agregation
of OS specific solutions.

Mumia W.

2007-02-16, 6:59 pm

On 02/16/2007 11:12 AM, siegfried wrote:
> Can someone suggest where I would look to reinvent "df" with perl? The "df"
> command enumerates all the drives and partitions and interrogates them for
> the amount of disk space total, used and available. Is there an OS neutral
> way to write this program? I hope so. If not, this will be running on
> xubuntu (linux).
>
> Thanks,
>
> Sigfried
>
>


cpan> m /diskfree/
Module Filesys::DiskFree
(A/AB/ABARCLAY/Filesys-DiskFree-0.06.tar.gz)
Module VBTK::Wrapper::DiskFree (B/BS/BSHENRY/VBTK-0.20.tar.gz)
2 items found

cpan>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com