<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma,sans-serif" color="#000000">Laroy,<br><br> Yes, you are right. I had it hard coded for testing. Users should change the line to<br><br>if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt "$MAX_FILE" ]<br><br>and set MAX_FILE to the number of different courtesy files they create.<br id="FontBreak"></font><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">To: arm-allstar@hamvoip.org<br>Date: Fri, 25 Mar 2016 11:19:15 -0500<br>Subject: Re: [arm-allstar] A Script to Change Courtesy tones<br>From: arm-allstar@hamvoip.org<br>CC: lmccann@dtisp.com<br><br>
  
    
  
  
    <div class="ecxmoz-cite-prefix">Doug,<br>
      <br>
      In your script you have  "MAX_FILE" variable set to 2.<br>
      <b><i></i></b><b><i># Maximum file number (1 - MAX_FILE)</i></b><b><i><br>
        </i></b><b><i>MAX_FILE="2"</i></b><br>
      <br>
      But in your comparison statement you have the greater than check
      hard coded to 2.<br>
      <b><i>if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt 2 ]</i></b><br>
      <br>
      I think this is what you intended for the comparison to read.<br>
      <b><i>if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt "$MAX_FILE"
          ]<br>
          <br>
        </i></b>73's<br>
      LaRoy, K5TW<br>
      <br>
      <br>
      On 3/25/2016 10:26 AM, Doug Crompton via arm-allstar wrote:<br>
    </div>
    <blockquote cite="mid:BLU171-W6211B0515880689EBF0422BA830@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
      <div dir="ltr"><font style="" face="Tahoma,sans-serif" color="#000000">These attachments were in the
          original message but I repeat them here...<br id="ecxFontBreak">
        </font><br>
        <b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br>
          </font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br>
          </font><font style="font-size:16pt;" size="4"><a class="ecxmoz-txt-link-freetext" href="http://www.crompton.com/hamradio" target="_blank">http://www.crompton.com/hamradio</a></font></b><font style="font-size:16pt;" size="4"><br>
        </font><br>
        <br>
        <div>> Date: Fri, 25 Mar 2016 01:39:59 -0500<br>
          > To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
          > Subject: [arm-allstar] A Script to Change Courtesy tones<br>
          > From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
          > CC: <a class="ecxmoz-txt-link-abbreviated" href="mailto:kevin.babich@gmail.com">kevin.babich@gmail.com</a><br>
          > <br>
          > Doug,<br>
          > <br>
          > Your email references an attached script, could you
          please send this to me?<br>
          > <br>
          > Kindest Regards,<br>
          > <br>
          > Kevin Babich | N9IAA<br>
          > Valparaiso, IN 46383<br>
          > <br>
          > Mobile: 219.406.9707<br>
          > <br>
          > Cessna 421<br>
          > Cesssna Conquest I/II<br>
          > Beechcraft King Air 90/200<br>
          > <br>
          <br>
        </div>
      </div>
      <br>
      -- <br>
      This message has been scanned for viruses and
      <br>
      dangerous content by the
      <a href="http://www.dtisp.com/" target="_blank"><b>DTISP
          MailScanner</b></a>, and is
      <br>
      believed to be clean.
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________

arm-allstar mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>

Visit the BBB and RPi2 web page - <a class="ecxmoz-txt-link-freetext" href="http://hamvoip.org" target="_blank">http://hamvoip.org</a></pre>
    </blockquote>
    <br>
  <br>
<table style="border-top:1px solid #aaabb6;">
        <tbody><tr>
      <td style="width:55px;padding-top:18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=oa-2115-v2-b" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-tick-round-orange-v1.png"></a></td>
                <td style="width:470px;padding-top:20px;color:#41424e;font-size:13px;font-family:Arial, Helvetica, sans-serif;line-height:18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=oa-2115-v2-b" target="_blank" style="color:#4453ea;">www.avast.com</a>
                </td>
        </tr>
</tbody></table>

<br>_______________________________________________

arm-allstar mailing list
arm-allstar@hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2 web page - http://hamvoip.org</div>                                          </div></body>
</html>