Thread View: news.software.readers
7 messages
7 total messages
Started by Chuck Campbell
Wed, 02 Nov 1994 15:58
anyone using newscan?
Author: Chuck Campbell
Date: Wed, 02 Nov 1994 15:58
Date: Wed, 02 Nov 1994 15:58
53 lines
3094 bytes
3094 bytes
I just grabbed the perl script 'newscan' and would like to make use of it, but
I apparently have something wron in the syntax for my search definition.
I don't know perl, and I don't really have time to sort it out at the moment.
Can anyone point out what is wrong here?
I am trying to scan group comp.sys.sun.admin for all references to "4mm"
I suspect the problem is perl syntax that I don;t know...
# Template Configuration file for newscan Internet news scanner
#
# Note: Lines beginning with # are comments. Remove leading # and
# edit line if you wish to activate line.
#
# specify the Internet address of the NNTP server for the system
# the NNTP server is the machine where the Internet news is stored.
NNTP news.neosoft.com
# specify the mailbox format file for the found articles
MBOX Mail/newscan
# specify the Internet newsgroups to be searched
SELECT comp.sys.sun.admin
# retrieve a news article if it contains a match to regular expression
WHERE /perl 4mm/[i]
# do not retrieve a news article if it contains a match to UNLESS regular expression
#UNLESS /perl regular expression/[i]
# a news article must contain a match to a REQUIRE regular expression to
# be retrieved.
#REQUIRE /perl regular expression/[i]
# collect statistics on search in a file -- to aid in refining search criteria
#COLLECT STATISTICS IN <file-specfication>
# collect statistics on frequency of articles that match a pattern
#COLLECT STATISTICS ON /perl regular expression/i
# collect statistics on search patterns specified by WHERE and REQUIRE lines
#COLLECT STATISTICS ON SEARCH PATTERNS
# collect statistics on unless patterns specified by UNLESS
#COLLECT STATISTICS ON UNLESS PATTERNS
# collect statistics on frequency of articles that match pairs of patterns
#COLLECT STATISTICS ON PAIRS
#<newsgroup>:<excluded range>
#
thanks,
-chuck
--
ACCEL Services, Inc. | Specialists in Gravity, Magnetics
1980 Post Oak Blvd., Suite 2050 | and Integrated Interpretation
Houston, TX, 77056 |
| 1(713)993-0671 voice
Chuck Campbell | 1(713)960-1157 fax
President & Senior Geoscientist | email campbell@neosoft.com
"Integration means more than having all the maps at the same scale!"
Re: anyone using newscan?
Author: Jeffrey Hurwit
Date: Thu, 03 Nov 1994 09:36
Date: Thu, 03 Nov 1994 09:36
16 lines
1408 bytes
1408 bytes
In article <398cvb$dol@uuneo.neosoft.com>,
Chuck Campbell (campbell@starbase.neosoft.com) wrote:
>I just grabbed the perl script 'newscan' and would like to make use of it, but
>I apparently have something wron in the syntax for my search definition.
>I don't know perl, and I don't really have time to sort it out at the moment.
I don't know perl either, and I'd like to try newscan out. The
readme that came in the shell archive said that there's a man page
embedded in the script in "the standard manner," but only refers to
the perl text, rather than just describing the method. Can someone
save me a trip to the library, and tell us how to get at this
"embedded" documentation? TIA,
Jeff
Re: anyone using newscan?
Author: lvirden
Date: Fri, 04 Nov 1994 18:55
Date: Fri, 04 Nov 1994 18:55
10 lines
1162 bytes
1162 bytes
Say nroff -man newscan > newscan.fmt and you have a formatted man page. -- :s Great net resources sought... :s Larry W. Virden INET: larry.virden@cas.org :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html> The task of an educator should be to irrigate the desert not clear the forest.
Re: anyone using newscan?
Author: lvirden
Date: Fri, 04 Nov 1994 18:57
Date: Fri, 04 Nov 1994 18:57
18 lines
1520 bytes
1520 bytes
Change [i] to just i - the [] I think was supposed to indicate that the text inside was optional. The i I believe indicates that you wish to ignore the case during expression testing. Of course, I could be all washed out - I can't get newscan to connect to my nntp server. I get: $ ./newscan Running newscan newsreader version : 1.45 by John F. McGowan, Ph.D.. Fatal Error: socket failed myhost (where myhost really is the name of my NNTP server). -- :s Great net resources sought... :s Larry W. Virden INET: larry.virden@cas.org :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html> The task of an educator should be to irrigate the desert not clear the forest.
Re: anyone using newscan?
Author: Chuck Campbell
Date: Mon, 07 Nov 1994 17:24
Date: Mon, 07 Nov 1994 17:24
38 lines
2364 bytes
2364 bytes
lvirden@cas.org wrote:
: Change [i] to just i - the [] I think was supposed to indicate that
: the text inside was optional. The i I believe indicates that you wish
: to ignore the case during expression testing.
Yep, this is the case. An additional line or two in the help page would
be very useful to the perl illiterate.
: Of course, I could be all washed out - I can't get newscan to connect to
: my nntp server. I get:
: $ ./newscan
: Running newscan newsreader version : 1.45 by John F. McGowan, Ph.D..
: Fatal Error: socket failed myhost
: (where myhost really is the name of my NNTP server).
: --
: :s Great net resources sought...
: :s Larry W. Virden INET: larry.virden@cas.org
: :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
: The task of an educator should be to irrigate the desert not clear the forest.
Also, my perl location is not /usr/bin/perl, and it took me a while to sort out
why the script was NOT working unless I used a "perl newscan -e" command...
Well, that's my fault, not the code <g>.
-chuck
--
ACCEL Services, Inc. | Specialists in Gravity, Magnetics
1980 Post Oak Blvd., Suite 2050 | and Integrated Interpretation
Houston, TX, 77056 |
| 1(713)993-0671 voice
Chuck Campbell | 1(713)960-1157 fax
President & Senior Geoscientist | email campbell@neosoft.com
"Integration means more than having all the maps at the same scale!"
Re: anyone using newscan?
Author: Tom Christiansen
Date: Mon, 07 Nov 1994 18:52
Date: Mon, 07 Nov 1994 18:52
29 lines
1880 bytes
1880 bytes
:-> In news.software.readers, campbell@neosoft.com writes:
:Also, my perl location is not /usr/bin/perl, and it took me a while to sort out
:why the script was NOT working unless I used a "perl newscan -e" command...
There's a good reason why the perl installation really wants
to make /usr/bin/perl a symlink to where it really is.
Barring that, one could ship software with this header:
#!/bin/sh -- # find the right perl
eval 'exec perl $0 -S ${1+"$@"}'
if 0;
which usually suffices at the cost of an extra exec.
Even more devious is the triglottal construct following, which
works even if you start the script with sh, csh, or perl:
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
--tom
--
Tom Christiansen Perl Consultant, Gamer, Hiker tchrist@mox.perl.com
Maturity is only a short break in adolescence.
-- Jules Feiffer
Re: anyone using newscan?
Author: lvirden
Date: Wed, 09 Nov 1994 14:42
Date: Wed, 09 Nov 1994 14:42
17 lines
1851 bytes
1851 bytes
I tried converting newscan to one of those shortcut forms recently but when I did a nroff -man file.pl on it I got the shortcut text at the top of the man page. I gave up and modified it to point to our version of perl. Note that I did find out later that my version of newscan sort of works when I make sure there is a pattern in my .newscanrc file. What doesn't appear to happen is quoting of the string 'From ' within the body of the messages retrieved. This causes problems with at least one email reading that I use, since it believes that '^From ' is reserved for beginning of email msgs. -- :s Great net resources sought... :s Larry W. Virden INET: larry.virden@cas.org :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html> The task of an educator should be to irrigate the desert not clear the forest.
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