<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 31/05/2017, at 3:52 PM, Steve Edwards <<a href="mailto:asterisk.org@sedwards.com" class="">asterisk.org@sedwards.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Wed, 31 May 2017, Daniel Tryba wrote:<br class=""><br class=""><blockquote type="cite" class="">On Wed, May 31, 2017 at 01:39:25PM -0700, Steve Edwards wrote:<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">What bugs you about the output format?<br class=""></blockquote><br class="">It's been a while, but as I recollect, it included the date/timestamp in the<br class="">file name of the 'ring buffer' which meant that each time the host was<br class="">rebooted, dumpcap didn't know the files from the previous run should be<br class="">deleted when they 'aged out.'<br class=""></blockquote><br class="">Solvable by by writing a cleanup script that deletes files over a<br class="">specific age, just a basic find in the daily crontab:<br class="">find /path/to/captures -type f -name 'pattern*' -mtime +X -exec rm {} \;<br class=""></blockquote><br class="">Been there, done that. Just 1 more thing for me to maintain :)<br class=""></div></div></blockquote></div><div class=""><br class=""></div>Easier just to use logrotate no?<div class=""><br class=""></div><div class="">That's what it's designed for.</div><div class=""><br class=""><div class="">
<div id="signature" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">--</div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Matt Riddell</div><div class="">_______________________________________________</div><div class=""><br class=""></div><div class=""><a href="http://www.venturevoip.com/news.php" class="">http://www.venturevoip.com/news.php</a> (Daily Asterisk News)</div><div class=""><a href="http://www.venturevoip.com/pabx_on_disk.php" class="">http://www.venturevoip.com/pabx_on_disk.php</a> (PABX on a Disk)</div><div class=""><a href="http://www.venturevoip.com/exchange.php" class="">http://www.venturevoip.com/exchange.php</a> (Full ITSP Solution)</div><div class=""><a href="http://www.venturevoip.com/cc.php" class="">http://www.venturevoip.com/cc.php</a> (Call Centre Solutions)</div></div></div></span></div>
</div>
<br class=""></div></body></html>