[asterisk-users] cdr-custom rotate?
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Sat Aug 9 02:26:00 CDT 2008
On Saturday 09 August 2008 01:53:49 Venefax wrote:
> I have to rotate the Master.csv every 5 minutes, on a heavy loaded system.
> I use cdr-custom. How do I force asterisk to rename the cdr file every 5
> mins? Is there a way?
Add to your crontab:
*/5 * * * *
mv /var/spool/asterisk/cdr-custom/Master.csv /var/spool/asterisk/cdr-custom/Master-`date
+%Y%m%d-%H%M`.csv
(all on one line)
--
Tilghman
More information about the asterisk-users
mailing list