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 that is being created. > > > > What exactly are you trying to achieve? If you add > > dates to the filenames, you're not rotating them > > anymore. > > I want them rotated but marked with dates in their file names, instead > of file.1, file.2 etc.
Then you don't need rotate. This pseudo will do the same: rename log as log.`date +%F` remove oldest log As of this you will no longer be rotating. Please do not toppost: http://www.xs4all.nl/~hanb/documents/quotingguide.html -- Bjørge Solli - Office:+47 55205847 Mohn-Sverdrupsenteret, Nansensenteret, Høyteknologisenteret T47 Thormöhlensgate 47, 5006 Bergen, Norway - www.nersc.no Google Earth: www.nersc.no/GE - TOPAZ: topaz.nersc.no -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>