Re: logfile rotation

2006-10-13 Thread Bjørge Solli
On Friday 13 October 2006 14:37, Tim Wolak wrote: > On Fri, 2006-10-13 at 14:35 +0200, Thomas Bätzler wrote: > > Tim Wolak <[EMAIL PROTECTED]> asked: > > > I'm working on rotating log files and am using the > > > logfile::rotate module. What I need to do is add the date to > > > the file name tha

RE: logfile rotation

2006-10-13 Thread Tim Wolak
I want them rotated but marked with dates in their file names, instead of file.1, file.2 etc. Tim On Fri, 2006-10-13 at 14:35 +0200, Thomas Bätzler wrote: > Tim Wolak <[EMAIL PROTECTED]> asked: > > I'm working on rotating log files and am using the > > logfile::rotate module. What I need to do

RE: logfile rotation

2006-10-13 Thread Thomas Bätzler
Tim Wolak <[EMAIL PROTECTED]> asked: > I'm working on rotating log files and am using the > logfile::rotate module. What I need to do is add the date to > the file name that is being created. What exactly are you trying to achieve? If you add dates to the filenames, you're not rotating them a

logfile rotation

2006-10-13 Thread Tim Wolak
Hi all, I'm working on rotating log files and am using the logfile::rotate module. What I need to do is add the date to the file name that is being created. Would I use the post function and move the file and append it to the file? If so could you proved an example? Thanks, Tim #!/usr/bin/pe