[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Date String in rotated Logs
- From: John Mahowald <jpmahowald gmail com>
- To: For users of Fedora Core releases <fedora-list redhat com>
- Subject: Re: Date String in rotated Logs
- Date: Sun, 1 May 2005 17:06:39 -0500
I don't think the extension directive runs shell commands. You can do
something like this with the lastaction script which I got from Debian
lists (http://lists.debian.org/debian-user/2004/08/msg04714.html)
lastaction
DATE=`date +%F`; mv /var/log/messages.1.gz /var/log/messages-$DATE.gz
endscript
Modify to suit your needs.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]