[Dx4win] WANTED: testers for new UPDATE program
Jim Reisert AD1C
jjreisert at alum.mit.edu
Wed Apr 27 19:50:58 EDT 2011
Hi Folks,
After two days of work on-and-off, I have re-written the DX4WIN UPDATE
program from scratch. It's now in compiled Perl. The new name of the
program is:
DX4WIN Data Updater
It's a stand-alone program that does not require WGET or UNZIP to be
installed. The major difference is that the program now has
command-line options that you can add to your Windows shortcut. For
example, you can specify one or more file types to be updated (and
only those) in an unattended (automatic) fashion:
dx4wupd -cty -awd
You can also specify "-all" to update all files (unattended), or
specify no command-line options if you want to be prompted to update
each file. Even in "unattended" (automatic) mode, you will still get
one prompt at the end, so that you can see what happened:
*** Press <ENTER> when done ...
Normally you will not use -all because it downloads DX4WIN.TCP twice
(both keep-alive and non-keep-alive versions), as well as both
DX4WIN.MAS and DX4WIN.MAS1 (you only need one or the other). See the
sample output below. When the web page is updated (after testing),
the instructions will show some common use cases.
*** I'm looking for a few people to help test the new program. If
you're interested, please reply to me directly. I'll send you
something late tonight (a link from which you can download the
program).
Thanks & 73 - Jim AD1C
p.s. There is still some unfinished business, mostly in error checking:
1. What if the BACKUP and/or UPDATE directories can't be created?
2. What if the file to download can't be found?
3. Things I haven't thought of yet....
Here is some sample output from the new program:
C:\DX4W805> dx4wupd -all
DX4WIN Data Updater - Version 2.90
Jim Reisert, AD1C - 27 April 2011
*** Working on DX4WIN.CTY ...
dx4win_cty.zip was updated on Fri Apr 1 00:25:24 2011
Extracted dx4win.cty from dx4win_cty.zip to SAVE/dx4win.cty
Extracted adif.pmp from dx4win_cty.zip to IMPORT/adif.pmp
*** Working on DX4WIN.AWD ...
dx4win_awd.zip was updated on Wed Apr 6 23:56:40 2011
Extracted dx4win.awd from dx4win_awd.zip to SAVE/dx4win.awd
*** Working on DX4WIN.TCP ...
dx4win.php was updated on Wed Apr 27 17:34:16 2011
Copied UPDATE/dx4win.php to SAVE/dx4win.tcp
*** Working on DX4WIN.TCP ...
dx4win.php?keep_alive=1 was updated on Wed Apr 27 17:34:17 2011
Copied UPDATE/dx4win.php to SAVE/dx4win.tcp
*** Working on DX4WIN.MAS ...
DX4WIN.MAS was updated on Thu Feb 10 18:34:51 2011
Copied UPDATE/DX4WIN.MAS to ./DX4WIN.MAS
*** Working on DX4WIN.MAS1 ...
DX4WIN.MAS1 was updated on Thu Feb 10 18:35:01 2011
Copied UPDATE/DX4WIN.MAS1 to ./DX4WIN.MAS1
*** Working on DX4WIN.MAS2 ...
DX4WIN.MAS2 was updated on Wed Apr 27 09:01:54 2011
Copied UPDATE/DX4WIN.MAS2 to ./DX4WIN.MAS2
*** Working on FULLLIST.XML ...
fulllist.xml was updated on Wed Apr 27 17:34:53 2011
Copied UPDATE/fulllist.xml to SAVE/fulllist.xml
*** 9 files were updated.
*** Press <ENTER> when done ...
Here is the same output when there isn't much to update. Due to the
way the way the DX4WIN.TCP file is generated as well as fulllist.xml,
these always get updated:
C:\DX4W805> dx4wupd -all
DX4WIN Data Updater - Version 2.90
Jim Reisert, AD1C - 27 April 2011
*** Working on DX4WIN.CTY ...
You already have the latest version of DX4WIN.CTY
*** Working on DX4WIN.AWD ...
You already have the latest version of DX4WIN.AWD
*** Working on DX4WIN.TCP ...
dx4win.php was updated on Wed Apr 27 17:37:56 2011
Copied UPDATE/dx4win.php to SAVE/dx4win.tcp
*** Working on DX4WIN.TCP ...
dx4win.php?keep_alive=1 was updated on Wed Apr 27 17:37:56 2011
Copied UPDATE/dx4win.php to SAVE/dx4win.tcp
*** Working on DX4WIN.MAS ...
You already have the latest version of DX4WIN.MAS
*** Working on DX4WIN.MAS1 ...
You already have the latest version of DX4WIN.MAS1
*** Working on DX4WIN.MAS2 ...
You already have the latest version of DX4WIN.MAS2
*** Working on FULLLIST.XML ...
fulllist.xml was updated on Wed Apr 27 17:38:05 2011
Copied UPDATE/fulllist.xml to SAVE/fulllist.xml
*** 3 files were updated.
*** Press <ENTER> when done ...
USAGE: dx4wupd [-option1 [-option2 [etc.]]]
Options:
-all : update all files without user intervention
-awd : update DX4WIN.AWD
-cty : update DX4WIN.CTY
-debug : shows additional debug messages
-help : shows this message
-iota : update fulllist.xml
-mas : update DX4WIN.MAS
-mas1 : update DX4WIN.MAS1
-mas2 : update DX4WIN.MAS2
-tcp : update DX4WIN.TCP
-kcp : update DX4WIN.TCP (with keep-alive)
-version : show version and exit
If no options specified, prompt to update each file
--
Jim Reisert AD1C, <jjreisert at alum.mit.edu>, http://www.ad1c.us
More information about the Dx4win
mailing list