home *** CD-ROM | disk | FTP | other *** search
/ World of Ham Radio 1997 / WOHR97_AmSoft_(1997-02-01).iso / packet / pak_32 / amsoft.iii next >
Text File  |  1997-02-01  |  18KB  |  376 lines

  1.  
  2.  
  3. How To Make Use of ROUTES UTILITY:  ROUTE141.EXE, ROUT141V.EXE, and SSTRI.EXE
  4. -----------------------------------------------------------------------------
  5. version 1.41   10apr95                   Freeware version notes 20jun95
  6.                                          Mailing address current 17nov95
  7. route141.exe:  for 80x25 line mode
  8. rout141v.exe:  for 80x43 or 80x50 line mode
  9. routes.bat:    you should change this bat file's contents to run only one of
  10.                the 2 above programs
  11.  
  12. The point of this program is to be able to see who forwards to whom across
  13. the country and around the world.  You can have a lot of fun with this set of
  14. programs.  The more packet bulletins you download, with hierarchical routing
  15. headers, the larger your database will become.  You'll be able to get a list
  16. of all the BBSs any given bbs receives mail from, or forwards to, subject to
  17. the limitations imposed by what mail reaches the bbs you use, and how much of
  18. that mail you download.
  19.  
  20. Starting with version 1.4, ROUTES produces two types of data files.  One type
  21. is a simple listing of "x forwards to y (date)(x held the message for z days),
  22. y receives from x."  You then sort this type of listing and do searches on it
  23. using ROUTES, SSTRI, SORTTEXT, and your favorite text editor.
  24.  
  25. The other type of data file produced by ROUTES is a comma-delimited file:
  26. "x,date,z,y."  Then you can "import" this comma-delimited file into dBase or
  27. Paradox or whatever database program you have, and use the database features
  28. of your database program to manipulate the data.  One of the headings below
  29. is entitled, "Using dBase IV with Comma-Delimited Files."
  30.  
  31. One caution:  if you are reading bulletins, you will build up data on who
  32. forwards BULLETINS to whom.  You will not necessarily be collecting data on 
  33. who forwards PERSONALS to whom, except for the personals addressed to you.  
  34. There are some forwarders who only handle personals and NTS.  Since you will 
  35. only be able to read personals addressed to you (unless you violate the rules
  36. and use someone else's callsign), your data on personals will be limited.
  37. This limitation should be taken into consideration; it may or may not be
  38. detrimental to your purpose in building up a database.
  39.  
  40. ROUTES will also tell you approximately how long a message 'stuck' on a bbs
  41. before it was forwarded.  On lines which read 'x forwards to y', a number
  42. appears in parentheses, like this:  (0)   or   (3)  meaning, respectively,
  43. that the bbs held on to the message 0 days or 3 days before it forwarded
  44. it to the next bbs.  This version (1.31) of ROUTES reads only the date info
  45. on headers, not the time-of-day info, so if a message hit one bbs at 11:59pm
  46. one night, and reached the next bbs at 12:05am (six minutes later), ROUTES
  47. will tell you that the first bbs held on to the message for one (1) day.
  48. If the figure in parentheses is a negative number, it's likely that some bbs
  49. had its date/time information wrong.  So many BBSs have their system clocks
  50. set wrong, and some BBSs don't use Zulu time, so the time-of-day info on
  51. packet headers may be misleading and not useful.  However, if you want a
  52. revision of ROUTES that will try to make sense of the hours-and-minutes time 
  53. info on headers, i can write that for you; drop me a line and we can nego-
  54. tiate.  I've found that some BBSs even have the YEAR wrong on their headers:
  55. it was, for example, 940405 and someone had it as 930405.  ROUTES will find
  56. these errors because it will only work for 1994-2000, kick you out of the
  57. program, and give you good hints on where in the PACKET.TXT file to look for
  58. the error.  (Then you fix it with a text editor, delete the partially-written
  59. files, and start over.)
  60.  
  61.  
  62.  
  63.  
  64. How To Download Messages Properly To Use with ROUTES
  65. ----------------------------------------------------
  66.  
  67. First, when you download bulletins off your local packet bbs, read them with
  68. the RH command, not the R command.  (FBB bbs commands may differ from this.)
  69. For example, to read message #3145 with all the hierarchical routing headers,
  70. you would type:
  71.  
  72.                           RH 3145      (on W0RLI, AA4RE, MSYS BBSs)
  73.  
  74. That way, the message you download will have a list of BBSs the message passed
  75. thru, in very detailed fashion, including the full hierarchical address of
  76. each BBS and the date and time.
  77.  
  78.  
  79.  
  80.  
  81.  
  82. Preparing the Packet.txt File
  83. -----------------------------
  84.  
  85. Your downloaded file should be called PACKET.TXT, or if it's not, then when 
  86. you are done with the download, you should rename it at a dos prompt:
  87.  
  88.                           ren <filename> packet.txt
  89.  
  90. ... because ROUTE141.EXE will look for a file called 'packet.txt' on your
  91. disk.  If by chance your version of DOS does not have the 'ren' command, you 
  92. will have to find some other way of renaming the file.  A text editor or word 
  93. processing program might help you there.
  94.  
  95. Make sure that your download, and the renamed file PACKET.TXT, have a solid
  96. block of hierarchical header info, for each packet.  Like this:
  97.  
  98. R:940930/0401Z @:bbs etc.
  99. R:940930/0328Z @:bbs etc.
  100. R:940930/0309Z @:bbs etc.
  101. R:940930/0222Z @:bbs etc.
  102. R:940928/2011Z @:bbs etc.     some have @:bbs etc., some have @bbs etc.
  103. R:940928/1237Z @:bbs etc.
  104. R:940928/1000Z @:bbs etc.
  105. R:940927/2359Z @:bbs etc.
  106. R:940927/2100Z @:bbs etc.
  107. R:940927/2052Z @:bbs etc.
  108.  
  109. Previous versions of this utility required you to then use a text editor to
  110. make sure no R: lines go past column 77 on the screen.  This is no longer
  111. required.
  112.  
  113. However, you should load your packet.txt into a text editor and check all the
  114. blocks of R: lines to make sure there are no blank lines in each block, and
  115. no corrupted lines.
  116.  
  117. So ... each message should have a solid block of lines beginning with 'R:'.
  118. If a line appears in the middle of the block, containing nonsense or garbage,
  119. the program will interpret the garbage as a real BBS.  However, if a blank 
  120. line sneaks into the middle of the block, the program will take that to mean 
  121. a break in the forwarding chain, and you will lose a little bit of info you 
  122. would have otherwise gleaned.  So beware.
  123.  
  124.  
  125.  
  126.  
  127.  
  128. Running the Program
  129. -------------------
  130.  
  131. SO:  Once you've prepared the packet.txt file,
  132.  
  133. YOU RUN THE PROGRAM BY TYPING 'ROUTES' at the dos prompt.
  134.  
  135. Also, a sample PACKET.TXT file is included.  I downloaded this stuff off
  136. my local ham bbs.  I provide it here as a test file for you to practice
  137. on; it ran just fine with this program.
  138.  
  139. Typing 'ROUTES' runs the .bat file which runs the route141.exe or the
  140. rout141v.exe program.  Two variations of this version 1.41 are provided:
  141. route141 and rout141v.  The latter runs in your ega43 line mode or the vga50
  142. line mode.  If you try to use the 43/50 line variation on a 25-line screen,
  143. text will overrun the screen and you won't be pleased with the results.  If
  144. you have ansi.sys loaded in your system startup files, with 'mode 80,50' in
  145. your autoexec.bat, you will have no problem running the 43/50 line mode.  If
  146. you like the larger type of the 25-line mode, use the appropriate variation
  147. of this version 1.41.
  148.  
  149. The program works on your PACKET.TXT file and produces a disk file called
  150. OUTPUT.TXT.  Then, a few days later, say you've accumulated a new download of
  151. messages and you want to add on to the end of the output.txt file.
  152.  
  153. First make sure you've gotten your OLD packet.txt file out of the way, perhaps
  154. by renaming it packet.001 and filing it somewhere (or just leave it, renamed,
  155. in the subdir).  Then, your new download should be re-named PACKET.TXT.
  156.  
  157.         (If your "new download" is actually a bunch of little downloads,
  158.          you should first combine them all as follows:  move them into
  159.          a sub-directory of their own, then combine them into ONE FILE
  160.          by typing:  'copy *.* packet.txt'.  Then make sure the new
  161.          packet.txt has a total number of bytes equal to the sum of all
  162.          the files that were supposedly copied into it.  If so,  delete
  163.          the small files.  Then move the packet.txt file into the same
  164.          sub-directory as the ROUTES exe files, making  sure you "got
  165.          rid of" your old packet.txt file by renaming it packet.001 or
  166.          deleting it.)
  167.  
  168. Type 'routes' to run the program.  Your output.txt file will be added on to by
  169. this process.
  170.  
  171. The program will ask if you want to do a search on a specific callsign.  If 
  172. you do this, another file called SEARCH.TXT will be created (or added on to).  
  173. If you want to do a search on an output.txt file without going through the 
  174. routine of working on a packet.txt file, a separate program SSTRI.EXE will do 
  175. this for you.  SSTRI is included on the disk.
  176.  
  177. The program will then ask you if you want to do a sort on the search.txt file.
  178. You should answer 'y' to this.  The sort groups all the 'forwards to ... '
  179. lines together, and it is on these 'forwards to' lines that you will read the
  180. number of days the bbs held on to a message before forwarding it.
  181.  
  182. A stand-alone program, SORTTEXT.EXE, is included with this package. It will
  183. sort up to 2000 lines of text (where each line is treated as a single
  184. string).  It works just fine on my 486, but on my 286 it crashed with only
  185. 1800 lines.  If you have a 286 or an XT, you will have to see what maximum
  186. file length you can sort with this program.  You can use SORTTEXT to sort the
  187. SEARCH.TXT file when it gets really long.  Or you can use it to sort any text
  188. file you might want to sort.  You probably don't want to use sorttext.exe on
  189. your output.txt file, tho, because the latter file can get to be longer than
  190. 2000 lines quite easily.  Sorttext.exe will cough and die if it finds more than
  191. 2000 strings in the array.
  192.  
  193.         Here is an example of the command-line use of sorttext.exe:
  194.  
  195.         sorttext search.txt >sort.txt
  196.  
  197.         (the sorted file is written to disk as sort.txt)
  198.  
  199.         or
  200.  
  201.         sorttext search.txt >w6pw.txt           etc.
  202.  
  203.  
  204. As was mentioned near the beginning of this document, ROUTES also produces a
  205. comma-delimited file, named ROUTES.DBX.  The following section tells you how
  206. to use routes.dbx with dBase IV; this will probably work with dBase III as
  207. well but this was not tested.
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215. Using dBase IV With Comma-Delimited Files
  216. -----------------------------------------
  217.  
  218. dBase is a high-class database program which you can use to manipulate the
  219. ROUTES data like crazy.  Here is how to incorporate the routes.dbx file
  220. produced by ROUTES into a dBase .dbf file.
  221.  
  222. First, enter dBase like you normally would.  "Create" a new dBase file.
  223. Define the fields as follows:
  224.  
  225.     NUM      FIELD NAME       FIELD TYPE       WIDTH      DEC      INDEX
  226.     ---      ----------       ----------       -----      ---      -----
  227.  
  228.      1          BBS            character         32                  no
  229.      2          DATE           character          8                  no
  230.      3          HELD           character          2                  no
  231.      4          FWD_TO         character         32                  no
  232.  
  233.  
  234. In my ROUTES dBase file, I defined the date and the "held days" as character
  235. fields even though they are numbers.  You should do it this way unless you
  236. really know your way around dBase or Paradox or whatever database engine you
  237. are using.  The date takes up only 6 width; define it 6 instead of 8 if you
  238. want.  The decimal column I left blank, since I'm not using decimal places in
  239. character fields.  I specified no index fields, but if you know how to use
  240. index files, by all means use them.
  241.  
  242. Okay, so now you've got an empty dbase file.  I called mine "hambbs.dbf."
  243. Now exit to the DOT PROMPT (in dBase IV or III).  To move your routes.dbx file
  244. into the new hambbs.dbf, you type, at the dot prompt:
  245.  
  246.          append from routes.dbx delim
  247.  
  248. and voila! you have a nice new dBase routes database file.  (The routes.dbx
  249. file must be in the same subdirectory as your dBase program.)  Now get rid of
  250. routes.dbx by naming it routes.001 or just deleting it.
  251.  
  252. Now let's sort the hambbs.dbf file.  At the dot prompt, type:  'use hambbs'.
  253. Or, type:  'assist' to get the Control Center.  Display hambbs.dbf.  Hit F10
  254. to get the menu, then choose Organize, then choose Sort Database on Field List.
  255. The sort order which I usually choose is this:
  256.  
  257.                   1.  BBS
  258.                   2.  FWD_TO
  259.                   3.  DATE
  260.  
  261. By using the above sorting order, you will end up with a listing of, e.g., all
  262. the occurrences of bbs x forwarding to bbs y, with delays in days, by ascending
  263. date.  If jam-ups occurred in forwarding between x and y, you will see the
  264. dates on which the jam-ups occurred.
  265.  
  266. When dBase IV asks you for a name for the sorted file, I give it 'hambbs.srt'.
  267. Then I exit the program, delete hambbs.dbf, then rename the hambbs.srt:
  268.  
  269.                   ren hambbs.srt hambbs.dbf
  270.  
  271. This should cover how to deal with dBase IV (and by extension, dBase III).
  272. Paradox should accept comma-delimited files, though I have not tested this.
  273. Any database program worth anything will accept delimited files!
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281. Error Messages
  282. --------------
  283.  
  284. You will get one kind of error message if you try to run ROUTES with no
  285. packet.txt in the subdirectory.  Another kind of error message will appear if
  286. something is not quite right with the packet.txt file.  If there are any
  287. corrupted lines, the program will stop processing the file, and you will be
  288. alerted on the screen to check your packet.txt file.  A bbs address and a date
  289. will appear on the screen.  Take that info and search your packet.txt file for
  290. that callsign.  (But remember, that callsign could appear many times in the
  291. packet.txt file.)  Somewhere in the text, that callsign will be on or near
  292. the line that is corrupted.  Correct the error, delete the output.txt file,
  293. and run the program again.
  294.  
  295. -------------------------------------------------------------------------------
  296.  
  297. To recap, here is a list of the various text files you will have to deal with
  298. in using these programs:
  299.  
  300. PACKET.TXT         :     This is your conglomeration of packet radio
  301.                          downloads.  All your downloads you want to
  302.                          work on, at one time, should be in this one
  303.                          text file.  Old packet.txt files you are
  304.                          finished with should be renamed packet.001,
  305.                          packet.002, etc. to get them out of the way.
  306.  
  307. OUTPUT.TXT         :     This is the text file the program first
  308.                          writes.  It's a listing of who forwards to
  309.                          whom, and who receives from whom, in the
  310.                          same order as they appeared in your downloads.
  311.                          (The program also produces temporary files
  312.                          t1.txt and t2.txt, but these are deleted so
  313.                          you won't see them unless the program crashes
  314.                          or your machine crashes.)
  315.  
  316. SEARCH.TXT         :     This is the text file the program writes, if
  317.                          you tell it to search for a particular call-
  318.                          sign.  There may be a lot of redundancy here,
  319.                          and the listing will still be in the order
  320.                          they appeared in your downloads.
  321.  
  322. SORT.TXT           :     This is the text file which ROUTES writes when
  323.                          it sorts the search.txt file.  If you use
  324.                          sorttext.exe to sort, you can, on the command
  325.                          line, direct the output to sort.txt or to any
  326.                          other file name.
  327.  
  328. ROUTES.DBX         :     This is the comma-delimited file which has all
  329.                          the required information.  This file will prove
  330.                          to be the most valuable of all if you have
  331.                          dBase or Paradox.
  332.  
  333. Of these text files, output.txt will have many blank lines which you will
  334. want to delete, especially if you want to send output.txt to the printer!
  335. Output.txt will have hundreds of blank lines if you processed a large
  336. packet.txt file.  Use a text editor to remove the blanks, but only if you're
  337. going to be using output.txt later.  If you plan to run sorttext.exe on
  338. output.txt, you should go in with a text editor and delete the blank lines,
  339. because otherwise you may easily exceed the 2000-line limit for use of
  340. sorttext.exe.
  341.  
  342.  
  343.  
  344. -------------------------------------------------------------------------------
  345.  
  346.  
  347. A Windows version of this utility is available; if interested, please inquire
  348. by email (orrin@redshift.com) or snail mail to my P.O. Box below.
  349.  
  350.  
  351.  
  352.  
  353.  
  354.           ******************************************************
  355.           *     73 de orrin @ pfeiffer in big sur       /::    *
  356.           *       p.o. box 89, big sur ca 93920       \`o.O'   *
  357.           *   ------------------------------------    =(___)=  *
  358.           *      -- Non Illigitimi Carborundum --        U     *
  359.           *                                                    *
  360.           *  Packet   : WN1Z @ K6LY.#NOCAL.CA.USA.NA           *
  361.           *                                                    *
  362.           *  Internet : orrin@redshift.com                     *
  363.           *             WN1Z@W2XO.#SWPA.PA (gateway to         *
  364.           *               7134@mgs.com)                        *
  365.           *             wn1z@amsat.org                         *
  366.           *  Satellite: RS-12, RS-10, RS-15 (when i'm there)   *
  367.           ******************************************************
  368.  
  369.  
  370.  
  371. Above info current 11/95.  If you get e-mail or postal mail returned to you as
  372. undeliverable, such as if you receive this utility some years from now, try
  373. this: Orrin C. Winton c/o DeFeo, 46 Seeley Road, Trumbull CT 06611.
  374.  
  375.  
  376.