[Asterisk-Users] Deleting Monitor Files After 2 Months
Steve Totaro
asterisk at totarotechnologies.com
Thu May 19 08:44:09 MST 2005
----- Original Message -----
From: "Matthew Boehm" <mboehm at cytelcom.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Thursday, May 19, 2005 10:04 AM
Subject: Re: [Asterisk-Users] Deleting Monitor Files After 2 Months
> Gavin Hamill wrote:
>> On Thursday 19 May 2005 13:51, Steve Totaro wrote:
>>> Does anyone know the best way to automate the deletion of monitor
>>> files after they age two months?
>>
>> How about ...
>>
>> $ find /path/to/files -ctime +60 -exec rm {}\;
>>
>> Cheers,
>> Gavin.
>
> Nice Gavin. I would further turn that into a shell script and pop it into
> cron to run nightly.
>
> -Matthew
>
Thanks!
More information about the asterisk-users
mailing list