<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Let's see if I can address this:<br>
      <br>
      1. Spot files can be automatically removed by doing a 'set/var
      $Spot::spotcachedays <some positive integer larger than 1>'
      in the startup file.<br>
      2. Debug files ARE removed after (by default) 10 days. To keep
      more or fewer debug files 'set/var $DXDebug::keepdays <some
      positive integer larger than 1>' in the startup file. To keep
      them forever, set this to 0.<br>
      3. Log files (for historical abuse reasons) are kept for ever. I
      would not use find like Kin does, but do it this way:  <font
        face="Calibri">spawn("find /spider/local_data/logs -type f
        -mtime +62 -exec rm -f {} \;"). Note that log files are monthly
        not daily. <br>
        <br>
        Never been a fan of xargs ... Very easy to get bitten ...<br>
        <br>
        Dirk G1TLH <br>
        <br>
      </font>On 31/05/2022 08:24, Jan via Dxspider-support wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d74a4fd1-cbce-6d5c-7384-c239e93fc461@pa4jj.nl">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <font face="Arial">Hi Kin<br>
        <br>
        I have put it in the de dxspider crontab yesterday but I just
        looked this morning and all the spots and other data are still
        there.<br>
        Data is stored from may 20 to may 31 and I want to reduce these
        to only 3 days.<br>
        Should I change the +31 +62 into smaller figures e.g. +3 and +6?<br>
        <br>
        73<br>
        Jan<br>
        PA4JJ<br>
        <br>
      </font><br>
      <div class="moz-cite-prefix">Op 30-5-2022 om 19:52 schreef Kin via
        Dxspider-support:<br>
      </div>
      <blockquote type="cite"
        cite="mid:550df03e-c3ee-a4d3-9fd6-a071ecc0645c@cronux.net">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <p><font face="Calibri">Jan, I don't see what's wrong, but I
            have it implemented in the dxspider crontab like this:<br>
          </font></p>
        <p><font face="Calibri">0 0 * 1-12 * spawn("</font><font
            face="Calibri"><font face="Calibri">find </font>/spider/local_data/debug
            -type f -mtime +31 | xargs rm -rf")<br>
            2 0 * 1-12 * spawn("find /spider/local_data/log -type f
            -mtime +62 | xargs rm -rf")<br>
            3 0 * 1-12 * spawn("find /spider/local_data/spots -type f
            -mtime +31 | xargs rm -rf")<br>
            <br>
            Regards.<br>
            <br>
            Kin EA3CV</font></p>
        <p><font face="Calibri"><br>
          </font></p>
        <div class="moz-cite-prefix">El 30/05/2022 a las 17:09, Jan via
          Dxspider-support escribió:<br>
        </div>
        <blockquote type="cite"
          cite="mid:52952b71-196e-320e-4392-7d04bc52d2bb@pa4jj.nl">
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          <font face="Arial">Hello<br>
            <br>
            I am running DX-Spider ver. 1.57 build 441 on a raspberry Pi
            zero W.<br>
            <br>
            When I used ver.1.55 build 249 there was a script called
            spider saved in etc/cron.daily/spider which removed <br>
            data in /spider/data/log, /spider/data/debug and
            /spider/data/spots<br>
            <br>
            So with the build 441 the path now should be </font><br>
          <font face="Arial"><font face="Arial"> /spider/local_data/log,
              /spider/local_data/debug and /spider/local_data/spots<br>
              <br>
              So to remove older spots I have these lines:<br>
              <br>
              #!/bin/sh We need to delete old files.<br>
              spiderdir="/spider/local_data/spots/2022" <br>
              if [ -n "$spiderdir" ] && [ -d"$spiderdir" ]; then<br>
              # only keep three days' depth of these<br>
              find "$spiderdir" -type f -mtime +3 -exec rm {} \; fi<br>
              <br>
              I did chmod a+x spider<br>
              <br>
              But I the spots are not removed. I still see spots
              starting  may 20 til may 30<br>
              (which should be may27 til may 30)<br>
              <br>
              What is wrong?<br>
              Do I need to place the script elswhere or maybe use a
              complete different one?<br>
              <br>
              Please some help<br>
            </font></font>
          <pre class="moz-signature" cols="72">-- 
73
Jan
PA4JJ
______________________________________________________

My dxspider clusters running 24/7 on a raspberry pi 2
pa4jj-2 telnet 77.174.195.163 port 7300
pa4jj-3 telnet 77.174.195.163 port 7388</pre>
          <br>
          <fieldset class="moz-mime-attachment-header"></fieldset>
          <pre class="moz-quote-pre" wrap="">_______________________________________________
Dxspider-support mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:Dxspider-support@tobit.co.uk" moz-do-not-send="true">Dxspider-support@tobit.co.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support" moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a>
</pre>
        </blockquote>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
Dxspider-support mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:Dxspider-support@tobit.co.uk" moz-do-not-send="true">Dxspider-support@tobit.co.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support" moz-do-not-send="true">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
73
Jan
PA4JJ
______________________________________________________

My dxspider clusters running 24/7 on a raspberry pi 2
pa4jj-2 telnet 77.174.195.163 port 7300
pa4jj-3 telnet 77.174.195.163 port 7388</pre>
      <br>
      <fieldset class="moz-mime-attachment-header"></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>