In article <[EMAIL PROTECTED]>,
Tilghman Lesher <[EMAIL PROTECTED]> wrote:
> 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)

You will need to escape the % chars with \ to keep cron happy
(as I discovered when I tested my solution before posting :-)

Cheers
Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to