Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.862.444 Times

Filesys::DiskFree 0.06

  Date Added: January 18, 2010  |  Visits: 894

Filesys::DiskFree

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)



Filesys::DiskFree is a Perl module to perform the Unix command df in a portable fashion. SYNOPSIS use Filesys::DiskFree; $handle = new Filesys::DiskFree; $handle->df(); print "The root device is ".$handle->device("/")."n"; print "It has ".$handle->avail("/")." bytes availablen"; print "It has ".$handle->total("/")." bytes totaln"; print "It has ".$handle->used("/")." bytes usedn"; Filesys::DiskFree does about what the unix command df(1) does, listing the mounted disks, and the amount of free space used & available. Functions Filesys::DiskFree->set(option => value) Sets various options within the module. The most common option to change is the mode, which can be either blocks or inodes. By default, blocks is used. If reading a file from a foreign OS using the load() function, format may be used, which takes the name of an OS as set in the $^O variable. Returns the previous values of the options. Filesys::DiskFree->df() Perfoms a df command, and stores the values for later use. Filesys::DiskFree->command() Returns the appropriate command to do a df command, for the current format. This is used when you wish to call a df on a remote system. Use the df() method for local dfs. Returns undef if there isnt an appropriate command. Filesys::DiskFree->load($line) Reads in the output of a df, $line can be either a scalar or a filehandle. If $line is a filehandle, then the filehandle is read until EOF. Returns undef on failure Filesys::DiskFree->disks() Returns all the disks known about Filesys::DiskFree->device($id) Returns the device for $id, which is a scalar containing the device name of a disk or a filename, in which case the disk that filename in stored upon is used. If a filename doesnt begin with /, then it is treated as if is /. Filesys::DiskFree->mount($id) Returns the mount point for $id, which is a scalar containing the device name of a disk or a filename, in which case the disk that filename in stored upon is used. Filesys::DiskFree->avail($id) Returns the amount of available space in bytes for $id, which is a scalar containing the device name of a disk or a filename, in which case the disk that filename in stored upon is used. Filesys::DiskFree->total($id) Returns the amount of total space in bytes for $id, which is a scalar containing the device name of a disk or a filename, in which case the disk that filename in stored upon is used. Filesys::DiskFree->used($id) Returns the amount of used space in bytes for $id, which is a scalar containing the device name of a disk or a filename, in which case the disk that filename in stored upon is used..

Requirements: No special requirements
Platforms: Linux
Keyword: Command Device Name Df Disk Diskfree Filename Filesysdiskfree Libraries Perl Module Programming Returns Unix Command Used
Users rating: 0/10

License: Freeware Size: 5.12 KB
USER REVIEWS
More Reviews or Write Review


FILESYS::DISKFREE RELATED
Libraries  -  Getopt::Declare 1.11
Getopt::Declare is a Perl module with Declaratively Expressed Command-Line Arguments via Regular Expressions. SYNOPSIS use Getopt::Declare; $args = Getopt::Declare->new($specification_string, $optional_source); # or: use Getopt::Declare...
35.84 KB  
Libraries  -  Solaris::Disk::SVM::Graph 0.03
Solaris::Disk::SVM::Graph is a Perl module for graph your Solaris Volume Manager configurations. SYNOPSIS my $graph = Solaris::Disk::SVM::Graph->new( sourcedir => path/to/dir, # path to SVM config files, # see Solaris::Disk::SVM for details...
11.26 KB  
Libraries  -  Net::Appliance::Phrasebook 0.08
Net::Appliance::Phrasebook is a Perl module for network appliance command-line phrasebook. SYNOPSIS use Net::Appliance::Phrasebook; my $pb = Net::Appliance::Phrasebook->new( platform => IOS, source => /a/file/somewhere.yml, # optional );...
7.17 KB  
Libraries  -  Solaris::MapDev 0.05a
Solaris::MapDev Perl module contains a map between instance numbers and device names. SYNOPSIS use Solaris::MapDev qw(inst_to_dev dev_to_inst); my $disk = inst_to_dev("sd0"); my $nfs = inst_to_dev("nfs123"); my $inst =...
24.58 KB  
Libraries  -  AppleII::Disk 0.08
AppleII::Disk is a Perl module for block-level access to Apple II disk image files. SYNOPSIS use AppleII::Disk; my $disk = AppleII::Disk->new(image.dsk); my $data = $disk->read_block(1); # Read block 1 $disk->write_block(1, $data); # And...
37.89 KB  
Libraries  -  File::Basename 5.8.8
File::Basename is a Perl module to parse file paths into directory, filename and suffix. SYNOPSIS use File::Basename; ($name,$path,$suffix) = fileparse($fullname,@suffixlist); $name = fileparse($fullname,@suffixlist); $basename =...
12.2 MB  
Libraries  -  AppleII::ProDOS 0.08
AppleII::ProDOS is a Perl module created to access files on Apple II ProDOS disk images. SYNOPSIS use AppleII::ProDOS; my $vol = AppleII::ProDOS->open(image.dsk); # Open an existing disk print $vol->catalog; # List files in volume directory...
37.89 KB  
Libraries  -  Devel::Command::NewF 0.02
Devel::Command::NewF is a Perl module with the extended f command for the debugger. SYNOPSIS # In .perldb (or perldb.ini on Windows) use Devel::Command; # Devel::Command::NewF loaded automatically perl -de0 Patching with...
5.12 KB  
Libraries  -  POE::Component::ControlPort::Command 0.01
POE::Component::ControlPort::Command is a Perl module with register control port commands. SYNOPSIS use POE::Component::ControlPort::Command; POE::Component::ControlPort::Command->register( name => test, topic => sample_commands, usage =>...
12.29 KB  
Libraries  -  Device::ISDN::OCLM 0.40
Device::ISDN::OCLM is a perl module to control the 3com OfficeConnect LanModem. SYNOPSIS $sp = 1; $pw = secret; $lanmodem = Device::ISDN::OCLM->new (); $lanmodem->password ($pw); $command = manualConnect; $status = $lanmodem->$command...
13.31 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB