[Dxspider-support] Prefix data update automation.
Dirk Koopman
djk at tobit.co.uk
Wed Jan 22 23:56:28 CET 2020
On 22/01/2020 18:54, Joaquin . via Dxspider-support wrote:
> # AutoUpdate CTY.DAT
> 0 3 * * 0,2,5 spawn("cd /spider/data; wget -qN
> http://www.country-files.com/cty/cty.dat &")
> 0 3 * * 0,2,5 spawn("cd /spider/data; wget -qN
> http://www.country-files.com/cty/wpxloc.dat &")
> 0 3 * * 0,2,5 spawn("cd /spider/data; wget -qN
> http://www.country-files.com/cty/wpxloc.raw &")
> 2 3 * * 0,2,5 spawn("cd /spider/data; /spider/perl/create_prefix.pl
> <http://create_prefix.pl>")
> 3 3 * * 0,2,5 run_cmd("load/prefix")
This is probably the best way to do it. Or you could run the shell
script put together in a system cronjob by Bastien and then in the
DXSpider crontab run the 'run_cmd("load/prefix")' command.
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:
echo "load/prefix" > /spider/cmd_import/reload_prefix
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:
echo "shutdown" > /spider/cmd_import/shutdown
Assuming that you are using a standard installation, then the node will
shutdown and then restarted automatically by systemd or init.
73 Dirk G1TLH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20200122/c2ef9b1d/attachment-0001.htm>
More information about the Dxspider-support
mailing list