Filesys::DiskSpace is a Perl module as a df replacement.
SYNOPSIS
use Filesys::DiskSpace;
($fs_type, $fs_desc, $used, $avail, $fused, $favail) = df $dir;
This routine displays information on a file system such as its type, the amount of disk space occupied, the total disk space and the number of inodes. It tries syscall(SYS_statfs) and syscall(SYS_statvfs) in several ways. If all fails, it croaks.
OPTIONS
$fs_type
[number] type of the filesystem.
$fs_desc
[string] description of this fs.
$used
[number] size used (in Kb).
$avail
[number] size available (in Kb).
$ffree
[number] free inodes.
$fused
[number] inodes used.
Product's homepage
Requirements:
· Perl