# script for cutting a hpt's log-file
#
# (c)2002 sven(2:5030/1346)
use Time::Local;
$templog='/tmp/worklog.tmp';
if ( $#ARGV < 1 )
{ print "syntax is: cut-hptlog.pl /var/fido/logs/hpt.log 14\n";
print "\n";
print "where first parametr is FULL path to hpt's log-file,\n";
print "and second - is a number of days ";
print "what information in log will be saved\n";
<>;
exit;
};
die "Logfile ($ARGV[0]) not found" unless (-f $ARGV[0]);