home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
readsum.zip
/
MANUAL.DOC
< prev
next >
Wrap
Text File
|
1994-12-18
|
8KB
|
204 lines
READ SUMmaries
Rexx scripts to read summaries and produce selection files created and used
by the uqwk off-line reader program.
Use, Modify, and abuse these scripts at your own risk, I'm not responsible.
Usage:
Sortsum: <Summary File> - pre-process summary files created by uqwk.
Readsum: <No Arguments> - Read and select desired articles. (the interface)
makesel: <No Arguments> - Create a selection file suitable for uqwk.
Configuration may be done by editing the actual .CMD files, use your
editors Search function to look for lines that contain @CFG in them.
If you are using OS/2, all the file name variables appear at the top of
the file. You may change these as needed.
@CFG's after the beginning are mainly designed for those who are porting
to another operating system, (They contain the words OS dependent)
****
Sortsum: sortsum <summary.ext>
This script sorts a summary file and formats it so that readsum
may use it.
Files generated:
Tempfil Default "Tempfil.tmp" (deleted)
Sortfil Default "SortFil.tmp" (Used by readsum)
GroupFil Default "Groups.Tmp" (Used by readsum)
Readsum.CMD and Makesel.CMD need to be aware of the filenames
created by readsum.CMD.
Sortsum.CMD requires an external sort program. This can be adjusted
by changing the variable SortPgm = "<your sort program>" Since OS/2's
Sort program can only work on files < 63k, you may want to obtain another
sorting program.
SortSum can take a while to run, (after all, this is interpreted Rexx)
It is non-interactive, so you can use the Detach command with it.
Due to the way readsum works, it is not recommended that you use Summary
files larger than 9 newsgroups. The larger the files, the more sluggish
readsum is.
----
Modifications: (Not required reading)
This information is useless unless you intend to modify the scripts,
or create programs to work along with this one. File formats are listed
in the beginning of the file Sortsum.cmd
SortSum formats a summary file for the sort program, and feeds it to
the sort program as tempfil. The sort program sorts tempfil and generates
Sortfil. Tempfil is then deleted.
Sortsum then generates Groupfil. GroupFil keeps track of the articles that are
tagged, Newsgroup names, and the seek position of where the articles for
a given newsgroup begin.
An explanation may be needed here, Since the articles are proceeded by a
number that represents their newsgroup, And the sort program sorts from left
to right, in newsgroup order, it is possible to use tempfil's seek
position. (this way sortsum avoids reading the sortfil)
Sortsum was written with the goal of using the OS/2's Detach command.
it may safely be run in the background, (depending on your sort program)
You may wish to assign Groupfil and Sortfil as command line arguments, for
reasons mentioned under readsum.
****
Readsum: Readsum <no arguments>
This is the main interface program.
Help is available by pressing F1.
I tried to make this program look like Gopher and TIN.
Move the tag-pointer up and down the screen, and press enter to select a
newsgroup. Then move the tag-pointer up and down the list of articles
and tag the article(s) you are interested in retrieving. After you are done
tagging articles, press <ENTER> to save tagged articles, or Escape to
abandon changes.
You may search articles by pressing "/", tag an item by pressing "*", select
all articles by pressing "Ins", delete all articles by pressing "Del"
Pressing Home, End, Pgup/Pgdn will navigate the screen in the usual way.
Entering a number from the newsgroup selection level will display the articles
for that newsgroup, You may then tag desired articles.
When you are done tagging articles, and are at the newsgroup selection
level, press escape or Csr-Left. You will be prompted if you wish to save
tagged articles. Press N,Escape, or Crsr-Left if you do not. (The default is
to save tag information)
You may go back at a later time and continue tagging articles if you wish,
the articles that were previously tagged are saved, depending on if you
pressed "n" on "Save tagged articles?" prompt. This way you don't have to tag
all the interesting articles in 1 session.
The selection file is not created when you are done, you need to run
"makesel.cmd" to build this.
Configuration:
Tempfil Default "Tempfil.tmp" (deleted)
Sortfil Default "SortFil.tmp" (Generated by Sortsum)
GroupFil Default "Groups.Tmp" (Generated by Sortsum)
Use your editors "Search" function to look for lines containing @CFG.
The above filenames must be consistent with Sortsum and Makesel.
----
Modifications: (Not required reading)
This information is useless unless you intend to modify the scripts,
or create programs to work along with this one. File formats are listed
in the beginning of the file Sortsum.cmd
Readsum relies on ansii codes for it's keyboard input, and Screen
output. The keyboard may be customized in this way. The colors may be
changed in the procedure CsrAttrib()
Other files, such as those 00index.txt generated by some Ftp locations
could feasibly be modified to work with this program, and provide a way
of tagging files that are of interest to the operator. (If your ambitious)
Readsum reads in the GroupFil file, and uses it to seek up and down
sortfil. This is how it avoids reading in the whole sortfil at once.
You may wish to assign Groupfil and Sortfil via command line arguments, data
queues, environment variables, etc.. This way, several lists can exist at the
same time, sortsum could run as you are tagging articles from a differen't
summary file, maksel could be processing a third summary file, etc..
The Tagged field of Groupfil is modified so that articles are
saved for the next run, or for the makesel program. (See File Formats, in
sortsum.cmd for information on how to use this.)
****
MakeSel: Makesel <no arguments>
Before you can use uqwk to select the desired articles, this program
must be run. The reason it is a separate program, and not run after
readsum is that it takes a while to process the selected articles.
Makesel is non-interactive, so it may be detached, it also may take
a while to run, depending on how large the files are.
Example: Detach Makesel
Configuration:
Configuration:
Sortfil Default "SortFil.tmp" (Generated by Sortsum)
GroupFil Default "Groups.Tmp" (Modified by Readsum)
OutFil Default "Selected.sel" (Generated here, Upload to uqwk)
Use your editors "Search" function to look for lines containing @CFG.
Adjust the variables as needed.
The above filenames must be consistent with Sortsum and Makesel.
----
Modifications: (Not required reading)
This information is useless unless you intend to modify the scripts,
or create programs to work along with this one. File formats are listed
in the beginning of the file Sortsum.cmd
Makesel relies on Groupfil and Sortfil to generate a selection file.
The tagged field of groupfil is used to determine which articles are tagged
for offline reading.
First it reads a line from Groupfil,
then it reads in all articles from sortfil, saving only those that
have been tagged in memory.
After it has processed Groupfil and Sortfil, it writes Outfil using a format
that uqwk will accept.
MakeSel was written with the goal of using the OS/2's Detach command.
it may safely be run in the background, (depending on your sort program)
You may wish to assign Groupfil, Sortfil and Outfil as command line arguments,
for reasons mentioned under readsum.
****
It is my hope that you will enjoy these scripts as much as I've enjoyed
learning about Rexx. If you have any questions, ideas, or just want
someone to yell at.. :) I can be reached at: jhoglund@cscns.com
70244,3234@compuserve.com
I'd appreciate knowing if this project was useful to anyone.
Jamie