[Dxspider-support] Cron job for USDBRAW?
    Tom 
    wb8zrl at southslope.net
       
    Wed Oct 30 13:19:34 GMT 2013
    
    
  
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