[Dxspider-support] DXSpider crontabs in general

Stephen Carroll scarroll659 at gmail.com
Sat Dec 26 18:02:51 CET 2020


Jim,

I'm assuming you've had the USDB running previously and just updating?

If you are manually executing commands in the terminal window, here's 
what I've been using for the past year:

*cd /spider/data*

*wget -qN ftp://ftp.w1nr.net/usdbraw.gz*

*/spider/perl/create_usdb.pl usdbraw.gz*

*rm usdbraw.gz*

Then login and type: *load/usdb*

I'm somewhat new to linux and currently working on automating this 
process in crontab with the help of this listserver.

73, Steve - AA4U


On 12/26/2020 6:27 AM, James Snider via Dxspider-support wrote:
> Was playing with some of these commands this morning and was trying to 
> update the usdb files so I did the following
>
>
> cd /spider
> wget ftp://ftp.w1nr.net/usdbraw.gz <ftp://ftp.w1nr.net/usdbraw.gz>
>
> Then I executed this
>
> /spider/perl/create_usdb.pl usdbraw.gz
>
> It came back with this
>
> 1462465 records
>
>
> But when I log in and do load/usdb I get this
>
>
> W8BS de W8BS-2 26-Dec-2020 1220Z dxspider >
> load/usdb
> US Database not loaded
> W8BS de W8BS-2 26-Dec-2020 1221Z dxspider >
>
>
> What am I missing here??
>
> Jim W8BS
>
>
> James Snider
> jim at lexiann.com <mailto:jim at lexiann.com>
>
>
>
>> On Dec 24, 2020, at 2:21 AM, David Spoelstra via Dxspider-support 
>> <dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk>> 
>> wrote:
>>
>> Since we're sharing, I thought I'd give everyone my entire DXSpider 
>> crontab. Maybe I can help others and maybe someone has a better way 
>> of doing something than I do. BTW, mine has been running flawlessly 
>> for years.
>> -David, N9KT
>>
>> # /spider/local_cmd/crontab
>> # MAKE SURE /spider/cmd_import EXISTS!
>> # min, hour, day-of-month, month, day-of-week (0=Sun)
>> # TIME IS UTC!
>>
>> # Connect to other nodes
>> * * * * * start_connect('w9pa') unless connected('w9pa')
>> * * * * * start_connect('wb3ffv') unless connected('wb3ffv')
>> * * * * * start_connect('ky4xx') unless connected('ky4xx')
>>
>> # Monday 1am local - Get latest FCC data (W1NR updates Sundays)
>> 0  5 * * 1 spawn("cd /tmp && wget -qN ftp://ftp.w1nr.net/usdbraw.gz 
>> <ftp://ftp.w1nr.net/usdbraw.gz> && /spider/perl/create_usdb.pl 
>> <http://create_usdb.pl/> usdbraw.gz")
>> 15 5 * * 1 run_cmd("load/usdb")
>> 30 5 * * 1 spawn("rm /tmp/usdbraw.gz")
>>
>> # Friday 1am local - Get latest Keps to be ready for any contest
>> 0  5 * * 5 spawn("cd /tmp && wget -qN 
>> http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt 
>> <http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt> && 
>> /spider/perl/convkeps.pl <http://convkeps.pl/> -p nasabare.txt")
>> 15 5 * * 5 run_cmd("load/keps")
>> 30 5 * * 5 spawn("rm /tmp/nasabare.txt")
>>
>> # Friday 2am local - Get latest cty.dat to be ready for any contest
>> 0  6 * * 5 spawn("cd /spider/data && wget -qN 
>> http://www.country-files.com/cty/cty.dat 
>> <http://www.country-files.com/cty/cty.dat>")
>> 15 6 * * 5 spawn("cd /spider/data && wget -qN 
>> http://www.country-files.com/cty/wpxloc.raw 
>> <http://www.country-files.com/cty/wpxloc.raw>")
>> 30 6 * * 5 spawn("cd /spider/data && /spider/perl/create_prefix.pl 
>> <http://create_prefix.pl/>")
>> 45 6 * * 5 run_cmd("load/prefixes")
>>
>> # Friday 3am local - Update DXSpider to be ready for any contest
>> 0  7 * * 5 spawn("cd /spider && git reset --hard && git pull")
>>
>> _______________________________________________
>> Dxspider-support mailing list
>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at tobit.co.uk
> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20201226/88d0e952/attachment.htm>


More information about the Dxspider-support mailing list