[Dxspider-support] auto upload cty.dat

Keith Maton g6nhu at me.com
Sat Apr 8 10:38:50 BST 2023


Mine is very similar to Steve, except I use quotes rather than apostrophes and I cd into local_data before I run create_prefix.  It all works so I assume “ and ‘ are handled the same.

00 05 * * * run_cmd("download http://www.country-files.com/cty/cty.dat")
01 05 * * * run_cmd("download http://www.country-files.com/cty/wpxloc.raw")
02 05 * * * spawn("cd /spider/local_data ; /spider/perl/create_prefix.pl")
03 05 * * * run_cmd("load/prefix”)



> On 8 Apr 2023, at 10:12, Stephen Carroll via Dxspider-support <dxspider-support at tobit.co.uk> wrote:
> 
> Jan,
> 
> Several problems with your crontab:
> 
> 1. No need to download "wpxloc.dat" it's not used in dxspider, only need "wpxloc.raw"
> 
> 2. Remove "#" from start of cty.dat line. 
> 
> 3. If needed use " ; " instead of " | " between commands.
> 
> 4. Use  another " * " instead of "0,1,2,3,4,5,6" if running the command every day.
> 
> 5. Several builds ago, Dirk created a 'download' command. Read the /spider/Changes file. I've replaced my  "spawn" and "wget" like this:
> 
> 0 0 * * * run_cmd('download http://www.country-files.com/cty/cty.dat <https://www.country-files.com/cty/cty.dat>')
> 1 0 * * * run_cmd('download http://www.country-files.com/cty/wpxloc.raw <https://www.country-files.com/cty/wpxloc.raw>')
> 2 0 * * * spawn('/spider/perl/create_prefix.pl <http://create_prefix.pl/>')
> 3 0 * * * run_cmd('load/prefix')
> 
> Hope this helps.
> 
> 73, Steve - AA4U 
> 
> 
> On Sat, Apr 8, 2023, 3:23 AM dxcluster via Dxspider-support <dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk>> wrote:
>> Shoud I use a ; instead of the | ??
>> 
>> Op 8-4-2023 om 10:16 schreef dxcluster via Dxspider-support:
>> > Kin
>> > I discovered that the script for auto uploading cty.dat and wpxloc raw 
>> > is not working.
>> > When I do sh/h version I see version Turk-Caicos-Islands-VP5.
>> > So I do:
>> >
>> > sysop at raspberrypi:~ $ cd /spider/local_data
>> > sysop at raspberrypi:/spider/local_data $  wget -qN 
>> > https://www.country-files.com/cty/cty.dat
>> > sysop at raspberrypi:/spider/local_data $  wget -qN 
>> > https://www.country-files.com/cty/wpxloc.raw
>> > sysop at raspberrypi:/spider/local_data $ /spider/perl/create_prefix.pl <http://create_prefix.pl/>
>> > create_prefix.pl <http://create_prefix.pl/>: creating LOCAL prefix files
>> >
>> > Then in the console
>> > load/prefix
>> > Sh/h version now gives me
>> > VERSION Annobon-Island-3C0: 165 degs - dist: 3812 mi, 6135 km 
>> > Reciprocal heading: 351 degs
>> >
>> > I am using this script:
>> > #Auto update cty.dat
>> > 0 0 * * 0,1,2,3,4,5,6 spawn("cd /spider/local_data | wget -qN 
>> > https://www.country-files.com/cty/cty.dat")
>> > #1 0 * * 0,1,2,3,4,5,6 spawn("cd /spider/local_data | wget -qN 
>> > https://www.country-files.com/cty/wpxloc.dat")
>> > 2 0 * * 0,1,2,3,4,5,6 spawn("cd /spider/local_data | wget -qN 
>> > https://www.country-files.com/cty/wpxloc.raw")
>> > 3 0 * * 0,1,2,3,4,5,6 spawn("cd /spider/local_data | 
>> > /spider/perl/create_prefix.pl <http://create_prefix.pl/>")
>> > 4 0 * * 0,1,2,3,4,5,6 run_cmd("load/prefix")
>> >
>> > Something wrong?
>> >
>> > 73
>> > Jan
>> > PA4JJ
>> >
>> >
>> > _______________________________________________
>> > 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 <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/20230408/ed33d2d4/attachment-0001.htm>


More information about the Dxspider-support mailing list