[Dxspider-support] auto upload cty.dat

Stephen Carroll aa4u.steve at gmail.com
Sat Apr 8 10:12:53 BST 2023


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')
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> 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
> > 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")
> > 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
> > 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/d4750915/attachment.htm>


More information about the Dxspider-support mailing list