<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">John,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"> If you use the script I proposed you probably would want to use a mv (move command) instead of cp (copy). I believe you would want to move the files from the current directory after you change the name to avoid confusion. archivedir will continue to write files in the source directory and executing the script again will just bring those additional files over. You also can change the output filenames to whatever format you desire by changing the script. To keep them in sortable order though you need to keep it in the current order.<br><br><a href="https://stackoverflow.com/questions/17819834/sortable-readable-and-standard-time-format-for-logs">https://stackoverflow.com/questions/17819834/sortable-readable-and-standard-time-format-for-logs</a><br><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br clear="all"></div><div><div class="m_3053034687193136586gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><b><font size="4">73 Doug<br></font></b></div><b><font size="4">WA3DSP<br></font></b></div><b><font size="4"><a href="http://www.crompton.com/hamradio" target="_blank">http://www.crompton.com/<wbr>hamradio</a><br></font></b></div></div></div>
</div>
<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 12:06 PM, "John Huggins via arm-allstar" <span dir="ltr"><<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks Doug. I do so love "Bash"ing and that's a good method you propose.<br><br></div>Will set it up and give it a go tonight.<br><br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 11:59 AM, "Doug Crompton via arm-allstar" <span dir="ltr"><<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">John,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"> We will take that into consideration but Linux has great tools to do this in so many ways externally. Here is an example:<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I created dummy files in /tmp/test as such:<br><br>ls /tmp/test<br><br>20180130055931.wav 20180130055951.wav 20180130060111.wav 20180130060131.wav<br>20180130055941.wav 20180130060101.wav 20180130060121.wav<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Then ran the below script and had the resultant files -<br><br> ls /tmp/test2<br><br>01-30-2018-05-59-31.wav 01-30-2018-05-59-51.wav 01-30-2018-06-01-11.wav 01-30-2018-06-01-31.wav<br>01-30-2018-05-59-41.wav 01-30-2018-06-01-01.wav 01-30-2018-06-01-21.wav<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Of course the format could be changed to whatever you want by changing the script.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br>#!/bin/bash<br><br>FILES=/tmp/test<br>DestFiles=/tmp/test2<br><br>for f in $FILES/*<br>do<br> #echo "Processing $f file..."<br> # take action on each file. $f store current file name<br> f=${f##*/}<br> ext="${f##*.}"<br> dt="${f%.*}"<br><br> yr=${dt:0:4}<br> mn=${dt:4:2}<br> dy=${dt:6:2}<br><br> hr=${dt:8:2}<br> mi=${dt:10:2}<br> se=${dt:12:2}<br><br> echo "Filename $dt.$ext changed to $mn-$dy-$yr-$hr-$mi-$se.$ext"<br> cp $FILES/$dt.$ext $DestFiles/$mn-$dy-$yr-$hr-$mi<wbr>-$se.$ext<br><br>done<span><br><br><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br clear="all"></div><div><div class="m_-8920637957729651722m_3531056675790982980m_-4896195331252796209gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><b><font size="4">73 Doug<br></font></b></div><b><font size="4">WA3DSP<br></font></b></div><b><font size="4"><a href="http://www.crompton.com/hamradio" target="_blank">http://www.crompton.com/hamrad<wbr>io</a><br></font></b></div></div></div>
</div>
<br> <wbr> <br></span></div></div><div class="m_-8920637957729651722HOEnZb"><div class="m_-8920637957729651722h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 7:24 AM, "John Huggins via arm-allstar" <span dir="ltr"><<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the response Doug. Comments below.<br>
<br>
On Wed, Jan 31, 2018 at 11:43 PM, "Doug Crompton via arm-allstar"<br>
<<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>> wrote:<br>
> John,<br>
><br>
> Let me correct what I said as it was probably confusing the way I wrote<br>
> it... The node number is appended to the path.<br>
<br>
Yeah I did know that, but didn't make it clear. Sorry about that.<br>
<br>
> You cannot change the<br>
> filename.<br>
<br>
How sad. Well please consider this a feature request. All I really<br>
hope for is a dash between the YYYYMMDD and the Time. This...<br>
<br>
20180130055931.WAV<br>
<br>
...to this...<br>
<br>
20180130-055931.WAV<br>
<br>
Why? When parsing through all these files during an investigation it<br>
really helps to quickly be able to note the time at a glance rather<br>
than having to parse it in one's head continuously.<br>
<br>
That said, the scorecard for this feature is pretty good. Two days<br>
after turning it on and evidence of unwelcome behavior presented to an<br>
individual who voluntarily removed himself from the scene, we now have<br>
one less whacker on our system... and the women are trickling back to<br>
the repeater already!<br>
<br>
Allstar/HamVOIP... making a difference... thanks!<br>
<br>
John<br>
<br>
><br>
> 73 Doug<br>
> WA3DSP<br>
> <a href="http://www.crompton.com/hamradio" rel="noreferrer" target="_blank">http://www.crompton.com/hamrad<wbr>io</a><br>
><br>
><br>
> On Wed, Jan 31, 2018 at 11:39 PM, Doug Crompton <<a href="mailto:wa3dsp@gmail.com" target="_blank">wa3dsp@gmail.com</a>> wrote:<br>
>><br>
>> John,<br>
>><br>
>> The filename is always the node number. So in your example if you had<br>
>> that define in node [40000] the file name would be<br>
>><br>
>> /media/USB/40000<br>
>><br>
>> If you had a second node and it was [40001] the filename would be<br>
>><br>
>> /media/USB/40001<br>
>><br>
>> In other words you can define the path but not the file name.<br>
>><br>
>> 73 Doug<br>
>> WA3DSP<br>
>> <a href="http://www.crompton.com/hamradio" rel="noreferrer" target="_blank">http://www.crompton.com/hamrad<wbr>io</a><br>
>><br>
>><br>
>><br>
>> On Wed, Jan 31, 2018 at 10:28 PM, "John Huggins via arm-allstar"<br>
>> <<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a>> wrote:<br>
>>><br>
>>> All,<br>
>>><br>
>>> When we make use of the archive feature by setting rpt.conf to this...<br>
>>><br>
>>> archivedir = /media/USB<br>
>>><br>
>>> ...where is the setting to customize the filename format?<br>
>>><br>
>>> Thanks.<br>
>>><br>
>>> 73<br>
>>> John, kx4o<br>
>>> ______________________________<wbr>_________________<br>
>>><br>
>>> arm-allstar mailing list<br>
>>> <a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a><br>
>>> <a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" rel="noreferrer" target="_blank">http://lists.hamvoip.org/cgi-b<wbr>in/mailman/listinfo/arm-allsta<wbr>r</a><br>
>>><br>
>>> Visit the BBB and RPi2/3 web page - <a href="http://hamvoip.org" rel="noreferrer" target="_blank">http://hamvoip.org</a><br>
>><br>
>><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
><br>
> arm-allstar mailing list<br>
> <a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a><br>
> <a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" rel="noreferrer" target="_blank">http://lists.hamvoip.org/cgi-b<wbr>in/mailman/listinfo/arm-allsta<wbr>r</a><br>
><br>
> Visit the BBB and RPi2/3 web page - <a href="http://hamvoip.org" rel="noreferrer" target="_blank">http://hamvoip.org</a><br>
______________________________<wbr>_________________<br>
<br>
arm-allstar mailing list<br>
<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a><br>
<a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" rel="noreferrer" target="_blank">http://lists.hamvoip.org/cgi-b<wbr>in/mailman/listinfo/arm-allsta<wbr>r</a><br>
<br>
Visit the BBB and RPi2/3 web page - <a href="http://hamvoip.org" rel="noreferrer" target="_blank">http://hamvoip.org</a><br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
<br>
arm-allstar mailing list<br>
<a href="mailto:arm-allstar@hamvoip.org" target="_blank">arm-allstar@hamvoip.org</a><br>
<a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" rel="noreferrer" target="_blank">http://lists.hamvoip.org/cgi-b<wbr>in/mailman/listinfo/arm-allsta<wbr>r</a><br>
<br>
Visit the BBB and RPi2/3 web page - <a href="http://hamvoip.org" rel="noreferrer" target="_blank">http://hamvoip.org</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
<br>
arm-allstar mailing list<br>
<a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
<a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" rel="noreferrer" target="_blank">http://lists.hamvoip.org/cgi-<wbr>bin/mailman/listinfo/arm-<wbr>allstar</a><br>
<br>
Visit the BBB and RPi2/3 web page - <a href="http://hamvoip.org" rel="noreferrer" target="_blank">http://hamvoip.org</a><br></blockquote></div><br></div>