<div dir="ltr"><span style="font-family:Verdana;font-size:12px">Saki-</span><div>You are correct! Good catch! I dug into the "spawn" code in DXCron.pm (below) and I see that "spawn" does a "DXChannel::closeall();". I don't know why, but Dirk must have decided it was needed.</div><div>-David, N9KT</div><div><br></div><div># spawn any old job off<br>sub spawn<br>{<br>        my $line = shift;<br>        <br>        my $pid = fork();<br>        if (defined $pid) {<br>                if (!$pid) {<br>                        # in child, unset warnings, disable debugging and general clean up from us<br>                        $^W = 0;<br>                        eval "{ package DB; sub DB {} }";<br>                        DXChannel::closeall();<br>                        for (@main::listeners) {<br>                                $_->close_server;<br>                        }<br>                        unless ($main::is_win) {<br>                                $SIG{HUP} = 'IGNORE';<br>                                $SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT';<br>                                alarm(0);<br>                        }<br>                        exec "$line" or dbg("exec '$line' failed $!") if isdbg('cron');<br>                }<br>                dbg("spawn of $line started") if isdbg('cron');<br>        } else {<br>                dbg("can't fork for $line $!") if isdbg('cron');<br>        }<br><br>        # coordinate<br>        sleep(1);<br>}<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 8, 2021 at 3:32 AM dd5xx--- via Dxspider-support <<a href="mailto:dxspider-support@tobit.co.uk">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><div style="font-family:Verdana;font-size:12px"><div>
<div>Hi David et all,</div>

<div> </div>

<div>thanks for sharing your local crontab script. I have implemented my updates via my own bash script, independent of DXspider. I actually do the exact same thing, however the DXspider process doesn't get anything out of it except at the end when I run the load/prefix.</div>

<div> </div>

<div>I like to think outside the box and have also tried it via Spiders' local crontab as you suggested. However, while following along using 'watchdbg' and 'set/debug cron', I noticed that *EVERY* 'spawn' command in the crontab causes all connected users and nodes to be disconnected! In the watchdbg output window it looks like this:</div>

<div> </div>

<div>06:59:01 DXCommand<br>
06:59:01 DL1ABC disconnected<br>
06:59:01 DXCommand<br>
06:59:01 DL2ABC-5 disconnected<br>
06:59:01 DXCommand<br>
06:59:01 DL3ABC disconnected<br>
06:59:01 DXCommand<br>
06:59:35 DXCommand<br>
06:59:35 DL1ABC connected from 111.222.33.44</div>

<div> </div>

<div>The documentation for DXspider crontab <<a href="http://www.dxcluster.org/main/cron.html" target="_blank">http://www.dxcluster.org/main/cron.html</a>> unfortunately does not give a more detailed information.</div>

<div><br>
[...]<br>
spawn(<command>) - start a <command> as a new process. This is used to do various batch jobs that you may wish to happen at certain times of the day or week that operate on your machine but don't require access to the real-time internals of the cluster daemon. You can execute just about any command you like, but be warned stdin and stdout are still connected to the same terminal (if any) as the cluster daemon. Any unix command and arguments can be used, see exec in the perl documentation.</div>

<div>[...]</div>

<div> </div>

<div>For my needs the spawn event and the resulted disconnects for users/nodes is a no-go as I don't want my connected users+nodes to be disconnected. So I will continue to use my own external bash script for the cty.dat and wpxloc.raw updates as usual.</div>

<div> </div>

<div>==> Nevertheless, I'm curious if this is also the case for you, that the currently connected users+nodes are disconnected at the spawn command ? Looking forward to hear some comments.</div>

<div> </div>

<div>I want to add that I do not use Mojo but still (consciously) running version 1.55</div>

<div> </div>

<div>73</div>

<div>Saki, DD5XX</div>
</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left:2px solid rgb(195,217,229)">
<div style="margin:0px 0px 10px"><b>Gesendet:</b> Donnerstag, 04. März 2021 um 04:14 Uhr<br>
<b>Von:</b> "David Spoelstra via Dxspider-support" <<a href="mailto:dxspider-support@tobit.co.uk" target="_blank">dxspider-support@tobit.co.uk</a>><br>
<b>An:</b> "The DXSpider Support list" <<a href="mailto:dxspider-support@tobit.co.uk" target="_blank">dxspider-support@tobit.co.uk</a>><br>
<b>Cc:</b> "David Spoelstra" <<a href="mailto:davids@mediamachine.com" target="_blank">davids@mediamachine.com</a>><br>
<b>Betreff:</b> Re: [Dxspider-support] CTY-3105 Country Files - 03 March 2021</div>

<div name="quoted-content">
<div>OK, found the problem. I was using http vs https when I fetched the file - that made all the difference.
<div> </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> </div>

<div>My DXSpider crontab in /spider/local_cmd/:</div>

<div> </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" target="_blank">ftp://ftp.w1nr.net/usdbraw.gz</a> && /spider/perl/<a href="http://create_usdb.pl" target="_blank">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" target="_blank">https://www.amsat.org/amsat/ftp/keps/current/nasabare.txt</a> && /spider/perl/<a href="http://convkeps.pl" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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")</div>

<div> </div>

<div>-David, N9KT</div>
</div>
</div>
</div>
</div>
</div></div></div>

_______________________________________________<br>
Dxspider-support mailing list<br>
<a href="mailto:Dxspider-support@tobit.co.uk" target="_blank">Dxspider-support@tobit.co.uk</a><br>
<a href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support" rel="noreferrer" target="_blank">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a><br>
</blockquote></div>