<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix"><font size="+1">On 22/01/2020 18:54,
Joaquin . via Dxspider-support wrote:<br>
</font></div>
<blockquote type="cite"
cite="mid:CAHTVWh3576=jL90_S5TY-G48PLLYqxR7F73kARkunALAX9zdiw@mail.gmail.com"><font
size="+1"><tt><span class="gmail-tlid-translation
gmail-translation" lang="en"># AutoUpdate CTY.DAT<br>
0 3 * * 0,2,5 spawn("cd /spider/data; wget -qN <a
href="http://www.country-files.com/cty/cty.dat"
moz-do-not-send="true">http://www.country-files.com/cty/cty.dat</a>
&")<br>
0 3 * * 0,2,5 spawn("cd /spider/data; wget -qN <a
href="http://www.country-files.com/cty/wpxloc.dat"
moz-do-not-send="true">http://www.country-files.com/cty/wpxloc.dat</a>
&")<br>
0 3 * * 0,2,5 spawn("cd /spider/data; wget -qN <a
href="http://www.country-files.com/cty/wpxloc.raw"
moz-do-not-send="true">http://www.country-files.com/cty/wpxloc.raw</a>
&")<br>
2 3 * * 0,2,5 spawn("cd /spider/data; /spider/perl/<a
href="http://create_prefix.pl" moz-do-not-send="true">create_prefix.pl</a>")<br>
3 3 * * 0,2,5 run_cmd("load/prefix")</span></tt></font></blockquote>
<br>
<font size="+1"><tt>This is probably the best way to do it. Or you
could run the shell script put together in a system cronjob </tt>by
Bastien and then in the DXSpider crontab run <span
class="gmail-tlid-translation gmail-translation" lang="en">the
'run_cmd("load/prefix")' command.<br>
<br>
The point being that you don't need to restart the node. You can
simply reload the prefix file from the command line. You can
run commands by dropping a file, containing one or more DXSpider
cmds into the cmd_import directory rather than killing the node.
Do something like:<br>
<br>
</span></font><font size="+1"><span class="gmail-tlid-translation
gmail-translation" lang="en"><tt>echo "load/prefix" >
/spider/cmd_import/reload_prefix</tt></span></font><font
size="+1"><span class="gmail-tlid-translation gmail-translation"
lang="en"><br>
<br>
and the node will execute that command and then delete the file.
If you want to a do a weekly shutdown you can do that in the
DXSpider crontab. But Bastien's script could simply do:<br>
<br>
</span></font><font size="+1"><span class="gmail-tlid-translation
gmail-translation" lang="en"><tt>echo "shutdown" > </tt></span></font><span
class="gmail-tlid-translation gmail-translation" lang="en"><span
class="gmail-tlid-translation gmail-translation" lang="en"><font
size="+1"><tt>/spider/cmd_import/shutdown</tt></font><font
size="+1"><br>
<br>
Assuming that you are using a standard installation, then the
node will shutdown and then restarted automatically by systemd
or init.<br>
<br>
73 Dirk G1TLH</font><br>
</span></span>
</body>
</html>