Apache logs and prerotate

by Reywob(at)aol.com

 Date:  Fri, 24 Aug 2001 10:42:28 EDT
 To:  hwg-servers(at)hwg.org
  todo: View Thread, Original
Hi,

Maybe someone on this list can help me :-)
I'm using logrotate to (you've guessed it) rotate my log files.  However, 
before I rotate them, I want to execute the log analyzer.  After some 
research, I found that you could use a prerotate command.  I've tried the 
following, but it won't work.  The log analyzer isn't executed, and the log 
isn't rotated.  Can someone please help?  

/www/logs/zzz/transfer {
prerotate
    /www/vhtdocs/zzz/cgi-bin/awstats.pl site=www.zzz.co.uk > stats.html
endscript
  daily
}

I don't have telnet access to this server, only FTP :-(
Thanks,
Peter.

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA