[Dxspider-support] Cron job for USDBRAW?

Michael G. Carper mike at wa9pie.net
Wed Oct 30 18:43:50 GMT 2013


That's excellent, Tom.  Looks like it even loads it too.

Thanks!

Mike

-----Original Message-----
From: Tom [mailto:wb8zrl at southslope.net] 
Sent: Wednesday, October 30, 2013 8:20 AM
To: mike at wa9pie.net; The DXSpider Support list
Subject: Re: [Dxspider-support] Cron job for USDBRAW?

On Wednesday, October 30, 2013 03:44:23 am Michael G. Carper wrote:
> Has anyone created a cron job to pull down the USDBRAW file and 
> extract it monthly?
> 
> 
> 
> If so, can you share it?
> 
> 
> 
> Mike, WA9PIE


Mike       here is the way I do it

             tom      wb8zrl



#!/bin/bash
#
# a command shell to load the usdb database.  This requires
#   obtaining the US data in usdbraw.gz from W1NR.
#
#  get usdbraw.gz
/usr/bin/wget  -o /dev/null -T 120 -P /home/sysop/usdb
http://ftp.w1nr.net/usdbraw.gz # now gunzip usdb /bin/gunzip
/home/sysop/usdb/usdbraw.gz # now remove the old, and create the new usdb db
/bin/rm -f /spider/data/usdb.v1 /usr/bin/perl /spider/perl/create_usdb.pl
/home/sysop/usdb/usdbraw >/dev/null # now load new usdb /bin/echo
"load/usdb" >/spider/tmp/wb8zrl /bin/mv /spider/tmp/wb8zrl
/spider/cmd_import





More information about the Dxspider-support mailing list