<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi all,
    <br>
    <br>
    These are the steps I've followed:
    <br>
    <br>
    1. cd /spider/data
    <br>
    2. wget <a class="moz-txt-link-abbreviated"
      href="http://www.country-files.com/cty/cty.dat">www.country-files.com/cty/cty.dat</a>
    -O cty.dat
    <br>
    <br>
    (I'm sure that the last cty.dat file is downloaded because I've
    edited with nano and searching for the "VERSION" string I've found
    "Guinea-Bissau:            35:  46:  AF:   12.02:    14.80: 0.0: 
    J5:
    <br>
        J5,=VERSION; ")
    <br>
    <br>
    3. wget <a class="moz-txt-link-abbreviated"
      href="http://www.country-files.com/cty/wpxloc.raw">www.country-files.com/cty/wpxloc.raw</a>
    -O wpxloc.raw<br>
    4.  ../perl/create_prefix.pl<br>
    5. into the spider console, as sysop, done the command "load/prefix"
    <br>
    <br>
    Unfortunately, the output for the "sh/prefix version" is:
    <br>
    <br>
    sh/prefix version
    <br>
    VERSION CC: 201 IZ: 54 CZ: 29 LL: 12 9 S 96 49 E NH87 (VERSION,
    Cocos-Keeling-)
    <br>
    (IK5ZUK-1) de IK5ZUK-6  4-Mar-2021 1706Z dxspider >
    <br>
    <br>
    IMHO this means that the new database is not loaded, at least. I
    don't know what I'm doing wrong... <br>
    <br>
    <span class="moz-smiley-s2" title=":("></span>
    For completeness: I've tried to delete the file
    /spider/local_data/prefix_data.pl and run one more time the
    create_prefix and load/prefix, but nothing is changed.<br>
    <br>
    I don't know what else to try...<br>
    <br>
    73 Luigi IK5ZUK<br>
    <br>
    <div class="moz-cite-prefix">Il 04/03/2021 03:14, David Spoelstra
      via Dxspider-support ha scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEKn9qaa3VcBhHAz4wFqgM8TtHMdAenrBLjWLf4Y01jfVLuXxQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">OK, found the problem. I was using http vs https
        when I fetched the file - that made all the difference.
        <div><br>
        </div>
        <div>If anyone wants to use my DXSpider cron, you are most
          welcome. Just to make sure everyone understands, you can put a
          crontab in /spider/local_cmd/ and it will run. I put all my
          DXSpider stuff in there to keep everything dealing with
          DXSpider in one place.</div>
        <div><br>
        </div>
        <div>My DXSpider crontab in /spider/local_cmd/:</div>
        <div><br>
        </div>
        <div># /spider/local_cmd/crontab<br>
          # MAKE SURE /spider/cmd_import EXISTS!<br>
          # min, hour, day-of-month, month, day-of-week (0=Sun)<br>
          # TIME IS UTC!<br>
          <br>
          # Connect to other nodes<br>
          * * * * * start_connect('w9pa') unless connected('w9pa')<br>
          * * * * * start_connect('wb3ffv') unless connected('wb3ffv')<br>
          * * * * * start_connect('ky4xx') unless connected('ky4xx')<br>
          <br>
          # Monday 1am local - Get latest FCC data (W1NR updates
          Sundays)<br>
          0 5 * * 1 spawn("cd /tmp && wget -Nq <a
            href="ftp://ftp.w1nr.net/usdbraw.gz" moz-do-not-send="true">ftp://ftp.w1nr.net/usdbraw.gz</a>
          && /spider/perl/<a href="http://create_usdb.pl"
            moz-do-not-send="true">create_usdb.pl</a> usdbraw.gz")<br>
          2 5 * * 1 run_cmd("load/usdb")<br>
          4 5 * * 1 spawn("rm /tmp/usdbraw.gz")<br>
          <br>
          # Friday 1am local - Get latest Keps to be ready for any
          contest<br>
          0 5 * * 5 spawn("cd /tmp && wget -Nq <a
            href="https://www.amsat.org/amsat/ftp/keps/current/nasabare.txt"
            moz-do-not-send="true">https://www.amsat.org/amsat/ftp/keps/current/nasabare.txt</a>
          && /spider/perl/<a href="http://convkeps.pl"
            moz-do-not-send="true">convkeps.pl</a> -p nasabare.txt")<br>
          2 5 * * 5 run_cmd("load/keps")<br>
          4 5 * * 5 spawn("rm /tmp/nasabare.txt")<br>
          <br>
          # Friday 1am local - Get latest cty.dat to be ready for any
          contest<br>
          6  5 * * 5 spawn("cd /spider/data && wget -Nq <a
            href="https://www.country-files.com/cty/cty.dat"
            moz-do-not-send="true">https://www.country-files.com/cty/cty.dat</a>")<br>
          8  5 * * 5 spawn("cd /spider/data && wget -Nq <a
            href="https://www.country-files.com/cty/wpxloc.raw"
            moz-do-not-send="true">https://www.country-files.com/cty/wpxloc.raw</a>")<br>
          10 5 * * 5 spawn("cd /spider/data && /spider/perl/<a
            href="http://create_prefix.pl" moz-do-not-send="true">create_prefix.pl</a>")<br>
          12 5 * * 5 run_cmd("load/prefixes")<br>
          <br>
          # Friday 1am local - Update DXSpider to be ready for any
          contest<br>
          14 5 * * 5 spawn("cd /spider && git reset --hard
          && git pull")<br>
        </div>
        <div><br>
        </div>
        <div>-David, N9KT</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 7:54 PM
          JOSEPH REED via Dxspider-support <<a
            href="mailto:dxspider-support@tobit.co.uk"
            moz-do-not-send="true">dxspider-support@tobit.co.uk</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div style="overflow-wrap: break-word;">Interesting,
            <div><br>
            </div>
            <div>The -N means don’t download unless the file is newer. 
              Are you doing the wget -qn as sysop or another user?  I
              shamelessly use a crontab script written by another
              contributor (search the archives) or email me off list and
              it just happens without human intervention. That might be
              the way to go.</div>
            <div><br>
            </div>
            <div>Joe N9JR<br>
              <div><br>
                <blockquote type="cite">
                  <div>On Mar 3, 2021, at 6:00 PM, David Spoelstra via
                    Dxspider-support <<a
                      href="mailto:dxspider-support@tobit.co.uk"
                      target="_blank" moz-do-not-send="true">dxspider-support@tobit.co.uk</a>>
                    wrote:</div>
                  <br>
                  <div>
                    <div dir="ltr">I figured out my problem. For some
                      reason wget doesn't see the file as having been
                      changed!
                      <div><br>
                      </div>
                      <div>$ wget -N <a
                          href="http://www.country-files.com/cty/cty.dat"
                          target="_blank" moz-do-not-send="true">http://www.country-files.com/cty/cty.dat</a><br>
                        --2021-03-03 18:50:45--  <a
                          href="http://www.country-files.com/cty/cty.dat"
                          target="_blank" moz-do-not-send="true">http://www.country-files.com/cty/cty.dat</a><br>
                        Resolving <a
                          href="http://www.country-files.com/"
                          target="_blank" moz-do-not-send="true">www.country-files.com</a>
                        (<a href="http://www.country-files.com/"
                          target="_blank" moz-do-not-send="true">www.country-files.com</a>)...
                        72.52.250.187<br>
                        Connecting to <a
                          href="http://www.country-files.com/"
                          target="_blank" moz-do-not-send="true">www.country-files.com</a>
                        (<a href="http://www.country-files.com/"
                          target="_blank" moz-do-not-send="true">www.country-files.com</a>)|72.52.250.187|:80...
                        connected.<br>
                        HTTP request sent, awaiting response... 304 Not
                        Modified<br>
                        File ‘cty.dat’ not modified on server. Omitting
                        download.<br>
                      </div>
                      <div><br>
                      </div>
                      <div>It doesn't update the file and inside it
                        shows "C3,=VERSION;"</div>
                      <div><br>
                      </div>
                      <div>So, instead I switched to curl and ran:</div>
                      <div>curl -Os <a
                          href="http://www.country-files.com/cty/cty.dat"
                          target="_blank" moz-do-not-send="true">http://www.country-files.com/cty/cty.dat</a></div>
                      <div><br>
                      </div>
                      <div>This time it updated the file and inside it
                        shows "J5,=VERSION;" which is correct and
                        everything now works.</div>
                      <div><br>
                      </div>
                      <div>Does anyone know why wget doesn't see the
                        file as having been changed? Is it getting that
                        information from the server?</div>
                      <div><br>
                      </div>
                      <div>-David, N9KT</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <br>
                    <div class="gmail_quote">
                      <div dir="ltr" class="gmail_attr">On Wed, Mar 3,
                        2021 at 6:25 PM David Spoelstra <<a
                          href="mailto:davids@mediamachine.com"
                          target="_blank" moz-do-not-send="true">davids@mediamachine.com</a>>
                        wrote:<br>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        <div dir="ltr">
                          <div dir="ltr">OK, now you guys made me check
                            mine and I'm having problems too! I do the
                            following:
                            <div>    cd /spider/data</div>
                            <div>    wget -qN <a
                                href="http://www.country-files.com/cty/cty.dat"
                                target="_blank" moz-do-not-send="true">http://www.country-files.com/cty/cty.dat</a><br>
                                  wget -qN <a
                                href="http://www.country-files.com/cty/wpxloc.raw"
                                target="_blank" moz-do-not-send="true">http://www.country-files.com/cty/wpxloc.raw</a></div>
                            <div>I check the dates and they look
                              correct:</div>
                            <div>-rw-r--r--  1 sysop spider  77K Mar  3
                              18:03 cty.dat</div>
                            <div>-rw-r--r--  1 sysop spider 538K Mar  3
                              18:03 wpxloc.raw</div>
                            <div><br>
                            </div>
                            <div>I look inside cty.dat and
                              see: C3,=VERSION;</div>
                            <div><br>
                            </div>
                            <div>Then I run:</div>
                            <div>/spider/perl/<a
                                href="http://create_prefix.pl/"
                                target="_blank" moz-do-not-send="true">create_prefix.pl</a></div>
                            <div>which updates:</div>
                            <div>    -rw-r--r--  1 sysop spider 821K Mar
                               3 18:15 <a href="http://prefix_data.pl/"
                                target="_blank" moz-do-not-send="true">prefix_data.pl</a></div>
                            <div>Then I login to my cluster and run
                              "load/prefixes" which works.</div>
                            <div><br>
                            </div>
                            <div>But, when I run "sh/prefix version" I
                              get: VERSION DXCC: 12 ITU: 27 CQ: 14 LL:
                              42 35 N 1 37 E (VERSION, Andorra-C3)</div>
                            <div>Which doesn't match what you all are
                              getting!</div>
                            <div><br>
                            </div>
                            <div>When I looked in <a
                                href="http://prefix_data.pl/"
                                target="_blank" moz-do-not-send="true">prefix_data.pl</a>
                              I see:</div>
                            <div>  '=VERSION' => '75',</div>
                            <div><br>
                            </div>
                            <div>What am I doing wrong?</div>
                            <div><br>
                            </div>
                            <div>Thanks!</div>
                            <div>-David, N9KT</div>
                            <div><br>
                            </div>
                          </div>
                        </div>
                        <br>
                        <div class="gmail_quote">
                          <div dir="ltr" class="gmail_attr">On Wed, Mar
                            3, 2021 at 4:58 PM Luigi Carlotto IK5ZUK via
                            Dxspider-support <<a
                              href="mailto:dxspider-support@tobit.co.uk"
                              target="_blank" moz-do-not-send="true">dxspider-support@tobit.co.uk</a>>
                            wrote:<br>
                          </div>
                          <blockquote class="gmail_quote"
                            style="margin:0px 0px 0px
                            0.8ex;border-left:1px solid
                            rgb(204,204,204);padding-left:1ex">
                            <div> Hi Kjell,<br>
                              Thanks for your help.<br>
                              <br>
                              I've understood now. But however despite
                              having downloaded the last cty.dat from
                              the following URL:<br>
                              <br>
                              <a
                                href="https://www.country-files.com/cty/cty.dat"
                                target="_blank" moz-do-not-send="true">https://www.country-files.com/cty/cty.dat</a><br>
                              <br>
                              the DXCC entity identifying the version is
                              not "Guinea-Bissau-J5" but
                              "Cocos-Keeling-Islands-VK9C": so, if I'm
                              not wrong, this means that the cty.dat
                              file downloaded is not the last one.<br>
                              <br>
                              Of course, after cty.dat download in
                              /spider/data, I've done the spider/perl/<a
                                href="http://create_prefix.pl/"
                                target="_blank" moz-do-not-send="true">create_prefix.pl</a>
                              and finally, into the spider console done
                              the "load/prefix" command.<br>
                              <br>
                              Kjell, please could you tell me the exact
                              path for downloading the last cty.dat file
                              ?<br>
                              <br>
                              Thank you and sorry for noise to the
                              others.<br>
                              <br>
                              73 Luigi IK5ZUK<br>
                              <br>
                              <br>
                              <br>
                              <div>Il 03/03/2021 22:17, Kjell Jarl via
                                Dxspider-support ha scritto:<br>
                              </div>
                              <blockquote type="cite">
                                <p dir="ltr">Follow the path Jim
                                  outlined </p>
                                <br>
                                <br>
                                ---- Luigi Carlotto IK5ZUK via
                                Dxspider-support skrev ----<br>
                                <br>
                                Sorry Guys,<br>
                                below is the output for "sh/prefix
                                version" done in my spider:<br>
                                <br>
                                sh/prefix version<br>
                                VERSION CC: 201 IZ: 54 CZ: 29 LL: 12 9 S
                                96 49 E NH87 (VERSION, <br>
                                Cocos-Keeling-)<br>
                                (IK5ZUK-1) de IK5ZUK-6  3-Mar-2021 2040Z
                                dxspider ><br>
                                <br>
                                Where is the version number ?<br>
                                <br>
                                73 Luigi IK5ZUK<br>
                                <br>
                                <br>
                                <br>
                                Il 03/03/2021 21:37, Dirk Koopman via
                                Dxspider-support ha scritto:<br>
                                > SH/PREFIX VERSION will also work. A
                                rather off the wall SH/MOON <br>
                                > VERSION also works  :-)<br>
                                ><br>
                                > In fact any command that would show
                                a location as part of its output <br>
                                > will work.<br>
                                ><br>
                                > Dirk<br>
                                ><br>
                                > On 03/03/2021 20:27, Jim Reisert
                                AD1C via Dxspider-support wrote:<br>
                                >>> A question: I'm running
                                DxSpider software, is there a command to
                                see<br>
                                >>> what is the CTY version
                                installed into the system ?<br>
                                >> One of these may work:<br>
                                >><br>
                                >>    (*) SH/H VERSION<br>
                                >>    (*) SH/SUN VERSION<br>
                                >><br>
                                >> (*) These are CC Cluster
                                commands, but I think DX Spider uses the
                                <br>
                                >> same ones.<br>
                                >><br>
                                >> The callsign VERSION will be
                                identified as a particular DXCC entity,<br>
                                >> which is always listed at the
                                top of the release notes, for example:<br>
                                >><br>
                                >>      <a
                                  href="https://www.country-files.com/cty-3105-03-march-2021/"
                                  target="_blank" moz-do-not-send="true">https://www.country-files.com/cty-3105-03-march-2021/</a><br>
                                >>      VER20210303, Version
                                entity is Guinea-Bissau, J5<br>
                                >><br>
                                >> So it's easy to tell if you
                                have (or do not have) the latest version<br>
                                >> of the country file, but if the
                                version entity does NOT match, you<br>
                                >> will have go searching the
                                older release notes to find out which<br>
                                >> version you DO have installed. 
                                There is a search box in the<br>
                                >> upper-right hand corner of the
                                web page I listed above, type in<br>
                                >> Version Entity and you will see
                                them for each release.<br>
                                >><br>
                                >><br>
                                ><br>
                                ><br>
                                >
                                _______________________________________________<br>
                                > Dxspider-support mailing list<br>
                                > <a
                                  href="mailto:Dxspider-support@tobit.co.uk"
                                  target="_blank" moz-do-not-send="true">Dxspider-support@tobit.co.uk</a><br>
                                > <a
                                  href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support"
                                  target="_blank" moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a><br>
                                <br>
                                <br>
                                -- <br>
                                Questa email è stata esaminata alla
                                ricerca di virus da AVG.<br>
                                <a href="http://www.avg.com/"
                                  target="_blank" moz-do-not-send="true">http://www.avg.com</a><br>
                                <br>
                                <br>
_______________________________________________<br>
                                Dxspider-support mailing list<br>
                                <a
                                  href="mailto:Dxspider-support@tobit.co.uk"
                                  target="_blank" moz-do-not-send="true">Dxspider-support@tobit.co.uk</a><br>
                                <a
                                  href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support"
                                  target="_blank" moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a><br>
                                <br>
                                <fieldset></fieldset>
                                <pre>_______________________________________________
Dxspider-support mailing list
<a href="mailto:Dxspider-support@tobit.co.uk" target="_blank" moz-do-not-send="true">Dxspider-support@tobit.co.uk</a>
<a href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support" target="_blank" moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a>
</pre>
                              </blockquote>
                              <br>
                              <div
id="gmail-m_1407664938995936285gmail-m_5519675380789537698gmail-m_-4158866810881750078DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
                                <table style="border-top:1px solid
                                  rgb(211,212,222)">
                                  <tbody>
                                    <tr>
                                      <td
                                        style="width:55px;padding-top:18px"><a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
                                          target="_blank"
                                          moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
                                            alt="" style="width: 46px;
                                            height: 29px;"
                                            moz-do-not-send="true"
                                            width="46" height="29"></a></td>
                                      <td
style="width:470px;padding-top:17px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Mail
                                        priva di virus. <a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
                                          style="color:rgb(68,83,234)"
                                          target="_blank"
                                          moz-do-not-send="true">www.avg.com</a>
                                      </td>
                                    </tr>
                                  </tbody>
                                </table>
                                <a width="1" height="1"
                                  moz-do-not-send="true"> </a></div>
                            </div>
_______________________________________________<br>
                            Dxspider-support mailing list<br>
                            <a
                              href="mailto:Dxspider-support@tobit.co.uk"
                              target="_blank" moz-do-not-send="true">Dxspider-support@tobit.co.uk</a><br>
                            <a
                              href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a><br>
                          </blockquote>
                        </div>
                      </blockquote>
                    </div>
                    _______________________________________________<br>
                    Dxspider-support mailing list<br>
                    <a href="mailto:Dxspider-support@tobit.co.uk"
                      target="_blank" moz-do-not-send="true">Dxspider-support@tobit.co.uk</a><br>
                    <a
                      href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support"
                      target="_blank" moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a><br>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
          _______________________________________________<br>
          Dxspider-support mailing list<br>
          <a href="mailto:Dxspider-support@tobit.co.uk" target="_blank"
            moz-do-not-send="true">Dxspider-support@tobit.co.uk</a><br>
          <a
            href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Dxspider-support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dxspider-support@tobit.co.uk">Dxspider-support@tobit.co.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>