SetSize - Perl extension for reducing files from the top down


NAME

SetSize - Perl extension for reducing files from the top down


SYNOPSIS

  use File::SetSize;


DESCRIPTION

A very simple module to keep a file at set size by removing lines from the start of the file until the file is at the desired size. Ment created for apache logs.

usage

use File::SetSize;

$file_name = ``/usr/local/apache/logs/access_log''; $keepatsize = 500; # in bytes

SetSize($file_name,$keepatsize);


AUTHOR

campbell paterson cam8chris@fastmail.com.au


SEE ALSO

perl(1).

 SetSize - Perl extension for reducing files from the top down