Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    /production is at 11% with 13171716K remaining.
    /production/archive is at 18% with 8095500K remaining.
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    __END__
    
  3. or download this
    C:\Steve\Dev\PerlMonks\P-2013-12-18@1604-Hash-Undef>perl testdf3.pl > 
    +testdf3.txt
    Use of uninitialized value $percentage in concatenation (.) or string 
    +at testdf3.pl line 38.
    ...
    PREDEBUG (testdf3.pl:55):  Found $info->{capacity} to be > .10
    /production/archive is at 18% with 8095500K remaining.
    
  4. or download this
    # Change 12.3% to .123
    sub _percentage_to_decimal {
    ...
        return $percentage / 100;
    }
    
  5. or download this
    C:\Steve\Dev\PerlMonks\P-2013-12-18@1604-Hash-Undef>testdf4.pl
    Use of uninitialized value $info{"mount"} in hash element at C:\Steve\
    +Dev\PerlMonks\P-2013-12-18@1604-Hash-Undef\testdf4.pl line 14.
    ...
    /production is at 11% with 13171716K remaining.
    /production/archive is at 18% with 8095500K remaining.
    
  6. or download this
        if (!defined $info{mount})
        {
    ...
             $devices{ $info{mount} } = \%info;
         }
    
  7. or download this
    C:\Steve\Dev\PerlMonks\P-2013-12-18@1604-Hash-Undef>testdf5.pl
    $info{mount} undefined when $line = [/dev/mapper/VolGroup00-LogVol00]
    ...
    /production/archive is at 18% with 8095500K remaining.
    /boot is at 28% with 68351K remaining.
    
  8. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    __END__