🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by Frank McNeil Tue, 03 May 1994 08:41
Re: uqwk speed and summary files?
#5786
Author: Frank McNeil
Date: Tue, 03 May 1994 08:41
109 lines
4523 bytes
In article <QM-mjuniK0vE062yn@CSCNS.COM>, Jamie wrote:
>Hello all,
>
>I've been experimenting with uqwk in summary mode.
>(uqwk +n +L -Usummary.out  /=/  uqwk +n +L -Esummary.in)
>
>Does anyone else do this?

  I started to try this so I could grep the summary file for the
articles I wanted and decided it was kind of silly, because it is much
more time consuming than

  cp .newsrc .newsrc.old
  cp .newsrc.tax .newsrc
  nn -ms tax
  cp .newsrc .newsrc.tax
  cp .newsrc.old .newsrc

and using nn to quickly save to one file the few messages I want to
down load.  //set up a default save file in ~/.nn/init first.

>The reason I'm asking is that since some of us pay substantial
>online fee's (and I'm a "cyber-nerd")  I'd like to set it
>up so that I get only the articles I'm interested in. (from many
>differen't newsgroups)

  I also do 'nngrab tax', 'nngrab treaty', 'nngrab exchange' 2 to 3 times
a month after 1 am.

  This takes 20 to 30 minutes to go through all existing
newsgroups once.

>Uqwk takes forever IMO, and I'm wondering if it's actually
>faster to download huge SOUP packets than it is to:
>

  I think it would be faster to use 'nn ms "CNE"' and then save the
articles to one file that uqwk will process as if it was a newsgroup,
so you can get the soup formated articles into the POWERFUL YARN
MESSAGE BASE SEARCH ENGINE.

  I haven't had time to determine if uqwk can be recompiled or tricked
into using the file of nn saved messages as the location of the
newsfile root directory.

  QUESTION:
  --------
  Can uqwk and nn be configured to save nn saved files?

>
>  1.) have uqwk produce a summary.
>  2.) download the summary file. (process offline)
>  3.) upload the new summary file.
>  4.) have uqwk produce a smaller SOUP packet
>  5.) download the smaller soup packet.
>
>It takes uqwk about 10-20 minutes to produce the summary file,
>I'm calling at 9600 baud, wasting time. The resulting SOUP packet
>takes under 5 minutes to download. Total 15 - 25 minutes online.

  IMO using grep or egrep while on UNIX may take less time than
dowloading and uploading a summary packet.  I haven't timed it.

>Another option is this:
>
>  1.) call the service.
>  2.) get uqwk started
>  3.) hang-up. (wait 10-20 minutes)
>  4.) Call back
>  5.) continue with step 2 above.
>
>Would a unix account keep billing until uqwk finishes?
>Would uqwk finish the job?

  Good questions.

>Is this ethical? (I wouldn't be using their phone line ;)

  Ethical?  IMO, probably yes.  They probably already have protected
themselves from this possibility if they wouldn't want their users to
do it.  However, it may not appear ethical.

>I'd be interested in anyones stories about summary files with uqwk.
>
>Jamie

Hello

  This nn method isn't an answer that I'm satisfied with because

  * I don't know how to get my temporarily used .newsrc file updated
    so it doesn't read the previously read messages the next time a
    'nn   -ms tax' is issued.
    // I also tried nn -s tax.

  * I don't know if it's possible to use nngrab on an updated .newsrc

  * I really think that there is be a better way using readnews and/or
    some other unix programs.  I assume that many of the UNIX power
    users and/or perl programers use these other methods.

Therefore,
                              HELP!!!
                              ++++---
Frank

---
Frank McNeil, Tax Code Junkie    ftp.netcom.com:/pub/ftmexpat/*
ftmexpat@netcom.com              //contains inpat and expat tax info/pgm
Re: uqwk speed and summary files?
#5787
Author: Mike Northam
Date: Tue, 03 May 1994 10:01
54 lines
3458 bytes
>>>>> In article <Tp2njyr28DAD063yn@netcom.com>, ftmexpat@netcom.com (Frank McNeil) writes:

frank>   This nn method isn't an answer that I'm satisfied with because

frank>   * I don't know how to get my temporarily used .newsrc file updated
frank>     so it doesn't read the previously read messages the next time a
frank>     'nn   -ms tax' is issued.
frank>     // I also tried nn -s tax.

Below is a script that I use to update my .newsrc-home (which is the file
I use for downloading via uqwk.  I 'prekill' my news (you can use a script
like trnkill or rnkill for this.  I use emacs GNUS in batch mode, kicked
off by a cron at 4 in the morning.)  Then run the 'updatenewsrc' shell
script to copy the relevant lines from .newsrc to .newsrc-home (you'll
have to modify the script since your filenames will be different than mine).

frank>   * I don't know if it's possible to use nngrab on an updated .newsrc

Just rename your .newsrc file.

frank>   * I really think that there is be a better way using readnews and/or
frank>     some other unix programs.  I assume that many of the UNIX power
frank>     users and/or perl programers use these other methods.

This script uses sed and awk to copy lines from .newsrc to .newsrc-home.
Put this in a file "updatenews" in your toolbox directory.
Adjust the filenames for your situation.
chmod +x updatenews
Then just type 'updatenews' to run it--just takes a couple of seconds.

-----snippety-snip----------
#! /bin/sh
# updatenews - uses the newsgroup lines in one .newsrc (.newsrc-home)
#              as a template, grabbing corresponding newsgroup lines
#              from the main .newsrc and updating them in .newsrc-home
#
# this could do a little more cleaning up after itself

#  extract just the newsgroup name from the template .newsrc
awk '{print "/^"$1"/ p"}' ~/.newsrc-home > /tmp/tmpnews

# using the template, copy only those newsgroup lines from the main
#    .newsrc into .newsrc-home
sed -nf /tmp/tmpnews ~/.newsrc > /tmp/.newsrc-home2

# make backups and rename
mv ~/.newsrc-home ~/.newsrc-home.bak
mv /tmp/.newsrc-home2 ~/.newsrc-home
-----snippety-snip----------
-- 
Mike Northam, Shorter Software Solutions, on contract to Intel Corp.
(h) (503) 324-1831 (o) (503) 696-2356   123 11' 40" W   45 37' 14" N
  Watch for temporary address change soon.      Standard disclaimers apply
  mail now accepted at mbn@teleport.com, but mbn@greyskul.intel.com is OK
Re: uqwk speed and summary files?
#5793
Author: Russell Schulz
Date: Wed, 04 May 1994 02:11
13 lines
1544 bytes
ftmexpat@netcom.com (Frank McNeil) writes:

>   * I really think that there is be a better way using readnews and/or
>     some other unix programs.  I assume that many of the UNIX power
>     users and/or perl programers use these other methods.

the reason nn is going to be fast is because it's using either the
nn databases or the nov databases.  it's obviously not causing all of
the articles on the system to be opened, read off a disk, and closed.

make the uqwk selector do the same and you're laughing.
-- 
Russell Schulz  russell@alpha3.ersys.edmonton.ab.ca  ersys!rschulz  Shad 86c
Re: uqwk speed and summary files?
#5795
Author: Frank McNeil
Date: Wed, 04 May 1994 08:08
104 lines
5562 bytes
In article <MBN.94May3100130@greyskul.intel.com>, Mike Northam wrote:
>>>>>> In article <Tp2njyr28DAD063yn@netcom.com>, ftmexpat@netcom.com (Frank McNeil) writes:
>
>frank>   This nn method isn't an answer that I'm satisfied with because
>
>frank>   * I don't know how to get my temporarily used .newsrc file updated
>frank>     so it doesn't read the previously read messages the next time a
>frank>     'nn   -ms tax' is issued.
>frank>     // I also tried nn -s tax.
>
>Below is a script that I use to update my .newsrc-home (which is the file
>I use for downloading via uqwk.  I 'prekill' my news (you can use a script
>like trnkill or rnkill for this.  I use emacs GNUS in batch mode, kicked

  If I understand your suggestion, it is to kill every subject that
doesn't contain the word "tax" in it rather than type nn -s tax.

>off by a cron at 4 in the morning.)  Then run the 'updatenewsrc' shell
>script to copy the relevant lines from .newsrc to .newsrc-home (you'll
>have to modify the script since your filenames will be different than mine).
>
>frank>   * I don't know if it's possible to use nngrab on an updated .newsrc
>
>Just rename your .newsrc file.

  I don't get it.  I thought nngrab does a search for select words on
all newsgroups subject lines (e.g. 'nn -Xm tax').  I never thought it
looked at any file I can change.  I've assumed it used the file named
"active" or something else that I don't have permission to change.

>frank>   * I really think that there is be a better way using readnews and/or
>frank>     some other unix programs.  I assume that many of the UNIX power
>frank>     users and/or perl programers use these other methods.
>
>This script uses sed and awk to copy lines from .newsrc to .newsrc-home.
>Put this in a file "updatenews" in your toolbox directory.
>Adjust the filenames for your situation.

  The script you've written only seems necessary if the the news reader
MUST use all the news groups when processing information instead of a
small group called in .newsrc-home.

  I like the cp command and don't understand what is to be gained by
extracting a specific set (e.g. .newsrc-home) of groups from .newsrc.
I have a file called .newsrc.all that contains all the groups.  I
rarely use it, since I use many other much smaller files that contain
subsets of .newsrc.all.  I do this by replacing .newsrc with the
smaller subset by doing 'cp .newsrc.tax .newsrc' before running nn or
tin.  [I realize I may not understand something about your interesting
script.  I'll run it as soon as I get the msdos GNU version of SED.]

>chmod +x updatenews
>Then just type 'updatenews' to run it--just takes a couple of seconds.
>
>-----snippety-snip----------
>#! /bin/sh
># updatenews - uses the newsgroup lines in one .newsrc (.newsrc-home)
>#              as a template, grabbing corresponding newsgroup lines
>#              from the main .newsrc and updating them in .newsrc-home
>#
># this could do a little more cleaning up after itself
>
>#  extract just the newsgroup name from the template .newsrc
>awk '{print "/^"$1"/ p"}' ~/.newsrc-home > /tmp/tmpnews
>
># using the template, copy only those newsgroup lines from the main
>#    .newsrc into .newsrc-home
>sed -nf /tmp/tmpnews ~/.newsrc > /tmp/.newsrc-home2
>
># make backups and rename
>mv ~/.newsrc-home ~/.newsrc-home.bak
>mv /tmp/.newsrc-home2 ~/.newsrc-home
>-----snippety-snip----------
>--
>Mike Northam, Shorter Software Solutions, on contract to Intel Corp.
>(h) (503) 324-1831 (o) (503) 696-2356   123 11' 40" W   45 37' 14" N
>  Watch for temporary address change soon.      Standard disclaimers apply
>  mail now accepted at mbn@teleport.com, but mbn@greyskul.intel.com is OK

Hello

  Thanks for responding to my plea for help.  I haven't looked at
trnkill or rnkill.  I don't use kill.  I prefer to only read news with
certain words in the subject line or certain authors
(e.g.  'nn -mn LaCour' of U.S. Robotics).  My problem is a simple one.

  * After I run nn -s tax, or nn -ms tax
  * Then read then mark as read the messages
  * Then quit

  I would expect my ~/.newsrc and/or ~/.nn/select files to be changed
so the subject lines of the messages won't be searched the next time
I run nn -s tax or nn -ms tax.  However this isn't happening.

  HELP!

  I appreciate being able to read and use the script that explains part
of your method.  Thank you.

Frank

---
Frank McNeil, Tax Code Junkie    ftp.netcom.com:/pub/ftmexpat/*
ftmexpat@netcom.com              //contains inpat and expat tax info/pgm
Re: uqwk speed and summary files?
#5821
Author: Robert P. Rush
Date: Sat, 07 May 1994 01:13
79 lines
3809 bytes
In article <Tp2njyr28DAD063yn@netcom.com>, Frank McNeil wrote:
> In article <QM-mjuniK0vE062yn@CSCNS.COM>, Jamie wrote:
> >Hello all,
> >
> >I've been experimenting with uqwk in summary mode.
> >(uqwk +n +L -Usummary.out  /=/  uqwk +n +L -Esummary.in)
> >
> >Does anyone else do this?
>
> I started to try this so I could grep the summary file for the
> articles I wanted and decided it was kind of silly, because it is much
> more time consuming than
> 
>   cp .newsrc .newsrc.old
>   cp .newsrc.tax .newsrc
>   nn -ms tax
>   cp .newsrc .newsrc.tax
>   cp .newsrc.old .newsrc
> 
> and using nn to quickly save to one file the few messages I want to
> down load.  //set up a default save file in ~/.nn/init first.

If you don't mind downloading all of the articles for '.newsrc.tax',
use the -D option for uqwk.

The way I do it is to run uqwk several times:

   uqwk -m +n +L +x -D.NetNewsGetList
       Get the news groups that are in ".NetNewsGetList".  This file 
       contains one newsgroup per line.  I use it to get all of the
       new articles for certain newsgroups.  It will also update the
       .newsrc file.

   Run a trn killfile using a pcplus script.  This will be eliminated
   once I add regular expressions to the thread selector.

   uqwk -m +n +L +x -Usumfile
       Create a summary file.

   download the summary file, 
   select desired articles,
   upload the request list.

   uqwk -m -n +L +x -Erequest


After using a text editor to select articles for awhile, I decided to
write a program to do this for me.  It combines all of the articles in
each group into threads, then present the subject line for each thread
on the screen to be selected for downloading or not.  The first screen
will show all of the groups in the summary file with undecided threads.
You could move around this screen with arrow keys, page up, page down...
to select a group.  When a group is selected, the screen will show all
the undecided subjects along with the article count.  As each thread is
decided, it is removed from the screen.  The program keeps a history so
that once a thread is decided on, any new articles will automatically be
selected for downloading.  If you change your mind, you could switch to
'allshow' mode where both decided and undecided threads are shown.


I am considering releasing it to the net, but there are a few things
that need doing beforehand:

   Change the dos extender I am using now.  It came with the compiler,
   but has restrictions on redistribution.  

   Add a thread/article expire feature.  All thread subjects and article
   numbers are kept indefinitely.

   Add a test for duplicate article numbers.

   Add regular expression search to select subjects for downloading or
   not.

It is written for MS-dos.  If anyone is interested, e-mail me.


Bob Rush                | eschew obfuscation
bobr@mcs.com            |
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads