Help for this page

Select Code to Download


  1. or download this
    # warning level 10%
    my $warning_level=10;
    ...
    my $out = sprintf("Disk space on $dir => %0.2f%% (OK)\n",$df_free);
    print $out;
    }
    
  2. or download this
    You can run this script as a cron job:
    @hourly /path/to/df.pl