[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] savelogs question
- Subject: Re: [vps-mail] savelogs question
- From: Scott Wiersdorf <scott@xxxxxxxxxxxx>
- Date: Thu, 27 Nov 2003 08:25:47 -0700
On Thu, Nov 27, 2003 at 12:15:30PM +0100, Marjolein Katsma wrote:
> While reading through procmail documentation and tutorials, I
> stumbled over a reference to the program savelogs.
>
> It seems to do exactly what I need (I had already started writing a
> PHP program to do something similar...) with one small execption:
> its date extensions are in yymmdd format.
See the 'datefmt' option, which takes strftime(3) extensions. I.e.:
savelogs --datefmt='%Y%m%d' /path/to/logfile
probably is close to what you want (yyyymmdd). The strftime(3) manpage
lists all the available options. You can put the datefmt in a
configuration file (e.g., savelogs.conf) also:
DateFmt %Y%m%d
and invoke savelogs:
savelogs --config=/path/to/savelogs.conf
Scott
--
Scott Wiersdorf
scott@xxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
======================================================================
Main Index |
Thread Index