Thread View: news.software.readers
10 messages
10 total messages
Started by tsalagi
Fri, 15 Apr 1994 07:25
Strn questions
Author: tsalagi
Date: Fri, 15 Apr 1994 07:25
Date: Fri, 15 Apr 1994 07:25
30 lines
1965 bytes
1965 bytes
1. Is there a FAQ for strn yet? If so, does it answer the following questions, and where is it? 2. What's the name of the organization file for strn? I've tried ~/organization, ~/strn/organization, ~/.organization, ~/strn/.organization, and Organization in both directories, as well as trying an environment variable (setenv ORGANIZATION='witty saying'...). Darn fool thing just won't listen. (I have it set as a macro in my comm program for now... what a pain). 3. How can I get strn to stop the following two prompts, which I will never use?: Are you absolutely sure that you want to do this? [ny] y Prepared file to include [none]: 4. How do I save multi-part uuencoded files? I've been able to save and decode single-part files, but that's all. 5. Does anyone have a pointer to a sample kill file? I've managed to get that annoying Green Card posting into my kill file, but now I have to see the header every time I enter a newsgroup while strn does it's business. 6. Is there any way around strn's habit of creating dozens of directories for the kill files? It's eating up disk space like crazy, all for the sole purpose of killing one posting globally. There must be a way to avoid all those directories. Thanks if you've read this far. I've read the trn manual, but couldn't find these answers in there.
Re: Strn questions
Author: John Line
Date: Sat, 16 Apr 1994 10:19
Date: Sat, 16 Apr 1994 10:19
86 lines
5194 bytes
5194 bytes
In article <tsalagiCoAHyp.1n5@netcom.com>, <tsalagi@netcom.com> wrote:
>1. Is there a FAQ for strn yet? If so, does it answer the following
>questions, and where is it?
I don't know... don't remembering seeing one.
>2. What's the name of the organization file for strn? I've tried
>~/organization, ~/strn/organization, ~/.organization, ~/strn/.organization,
>and Organization in both directories, as well as trying an environment
>variable (setenv ORGANIZATION='witty saying'...). Darn fool thing just
>won't listen. (I have it set as a macro in my comm program for now... what
>a pain).
As with trn and rn before it, it all depends on your answers to the questions
asked by the Configure script.
(a) You can enter a fixed text string as the default, or a filename (any
filename, as long as it's a complete path starting with "/").
(b) You are asked whether [[s]t]rn should ignore the ORGANIZATION environment
variable, as some systems use that name for other purposes. Setting the
environment variable NEWSORG should work even if ORGANIZATION is ignored.
If you don't know how strn was configured (you didn't do it, or didn't use
script to record the Configure dialogue and can't remember...), you could try
running the "strings" command on the strn binary - that will list all the
word-like strings of text in the file, and you may be able to spot either a
file name mentioning organization, or the text for whatever hard-wired string
may have been specified - matching what you get when you post.
>3. How can I get strn to stop the following two prompts, which I will never
>use?:
>Are you absolutely sure that you want to do this? [ny] y
>Prepared file to include [none]:
Hey... I've been getting irritated by that, but never got around to
investigating. It doesn't seem to be mentioned in the [s]trn man page for Pnews
(the script that's run to handle posting), but reading the code shows that
if the FAST_PNEWS environment variable is set to y (or anything beginning with
y), it skips both those prompts and just drops you straight into the editor.
(It assumes that if you want to insert a file, you'll know how to do it using
the editor.)
Thanks for making me look at Pnews - I'll be setting that variable in future!
>4. How do I save multi-part uuencoded files? I've been able to save and
>decode single-part files, but that's all.
Don't know.
>5. Does anyone have a pointer to a sample kill file? I've managed to get
>that annoying Green Card posting into my kill file, but now I have to see
>the header every time I enter a newsgroup while strn does it's business.
Yes, it's a pain... [s]trn -f or [s]trn -t may help (try it). You'll still see
the killfile commands being processed, but without some of the explicit delays.
-f just kills the delays etc., -t makes prompting more terse in general.
>6. Is there any way around strn's habit of creating dozens of directories
>for the kill files? It's eating up disk space like crazy, all for the sole
>purpose of killing one posting globally. There must be a way to avoid all
>those directories.
Create a global kill file, if you just want to zap something regardless of
group. control-K (edit global killfile) will do that, as long as your default
editor will create a a new file without special options; alternatively, do it
manually. You need a file called KILL in your News save directory, containing
the same sort of commands as you've got in the individual group killfiles.
Also, see the section in the man page for the KILLGLOBAL and KILLLOCAL
environment variables - you can customise the choice of directory and filename.
>Thanks if you've read this far. I've read the trn manual, but couldn't find
>these answers in there.
It's mostly there, but I'd never noticed a lot of it! Running man and searching
for references to likely words may be quicker and more reliable (as long as you
guess the right words) than reading from end-to-end (man trn is big...). For
example, I already knew about global killfiles, but found the environment
variables for changing the names by searching for kill and KILL in the man
page.
John Line
--
John Line - Cambridge University Computing Service, Computer Laboratory,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, ENGLAND.
Internet: jml4@cus.cam.ac.uk JANET: jml4@uk.ac.cam.cus Phone: +44 223 334708
Re: Strn questions
Author: Wayne Davison
Date: Sat, 16 Apr 1994 21:18
Date: Sat, 16 Apr 1994 21:18
25 lines
1695 bytes
1695 bytes
According to <tsalagi@netcom.com>: > 4. How do I save multi-part uuencoded files? I've been able to save and > decode single-part files, but that's all. I select all the pieces to the file in the selector and type ":e dir" (where "dir" is the appropriate subdirectory name. You can alternately use the "e dir" command while reading the first piece and then use just "e" on each successive piece in the posting until it is done, or you can use ":e dir" from the article-reading prompt once you've browsed the descriptions. > 6. Is there any way around strn's habit of creating dozens of directories > for the kill files? The default is to use multiple drectory names so that it works with both short and long filename systems. I use the following to put all my kill files in one directory: -EKILLLOCAL="%p/Kill/%C" -EKILLGLOBAL="%p/Kill/Global" Put these lines in your init file, whatever the TRNINIT variable points to (is there a STRNINIT variable?). -- Wayne Davison davison@borland.com
Re: Strn questions
Author: tsalagi
Date: Fri, 22 Apr 1994 06:10
Date: Fri, 22 Apr 1994 06:10
50 lines
3018 bytes
3018 bytes
In article <2ooe32$1vt@lyra.csx.cam.ac.uk>, John Line <jml4@cus.cam.ac.uk> wrote: >In article <tsalagiCoAHyp.1n5@netcom.com>, <tsalagi@netcom.com> wrote: >>2. What's the name of the organization file for strn? I've tried >>~/organization, ~/strn/organization, ~/.organization, ~/strn/.organization, >>and Organization in both directories, as well as trying an environment >>variable (setenv ORGANIZATION='witty saying'...). Darn fool thing just >>won't listen. (I have it set as a macro in my comm program for now... what >>a pain). > >As with trn and rn before it, it all depends on your answers to the questions >asked by the Configure script. Heh... <slap self>. See the = sign up there? Not supposed to be there. I works fine when I leave that off. >>4. How do I save multi-part uuencoded files? I've been able to save and >>decode single-part files, but that's all. > >Don't know. Tag all the interesting binaries, then use ':e' to extract. >Yes, it's a pain... [s]trn -f or [s]trn -t may help (try it). You'll still see >the killfile commands being processed, but without some of the explicit delays. >-f just kills the delays etc., -t makes prompting more terse in general. Tried both, and I've settled on -f for now until I get more familiar with things. Thanks! Re: the killfiles: I've managed to at least get strn to stop making dozens of directories; now I have a separate file for each newsgroup I enter. Well, at least they're all in one place, and so far, very small. Anyone know what these files are for? They all contain one line: "THRU 12345" (a number). Can I get rid of them? If this keeps up, after a month I'm probably going to have over a thousand of these things. (Lots of newsgroups out there). :) I've saved the rn killfile faq that was posted April 19, but I'm dubious about it. It was last updated Sep 1993. Hopefully, though, I'll get a better understanding of the syntax for killfile entries. Thanks again! -- tsalagi@netcom.com Guns, encryption, abortion, equality, corruption, abuse, homelessness, drugs, censorship, religion, conservation, security, politics, pornography, fraud, pollution, commercialism Are we politically correct enough yet, Jeb?
Re: Strn questions
Author: tsalagi
Date: Fri, 22 Apr 1994 06:35
Date: Fri, 22 Apr 1994 06:35
45 lines
2652 bytes
2652 bytes
In article <CoDF61.9z4@borland.com>, Wayne Davison <davison@borland.com> wrote: >According to <tsalagi@netcom.com>: >> 4. How do I save multi-part uuencoded files? I've been able to save and >> decode single-part files, but that's all. > >I select all the pieces to the file in the selector and type ":e dir" (where >"dir" is the appropriate subdirectory name. You can alternately use the >"e dir" command while reading the first piece and then use just "e" on each >successive piece in the posting until it is done, or you can use ":e dir" >from the article-reading prompt once you've browsed the descriptions. Works like a charm! > >> 6. Is there any way around strn's habit of creating dozens of directories >> for the kill files? > >The default is to use multiple drectory names so that it works with >both short and long filename systems. I use the following to put all my >kill files in one directory: > >-EKILLLOCAL="%p/Kill/%C" >-EKILLGLOBAL="%p/Kill/Global" > >Put these lines in your init file, whatever the TRNINIT variable points >to (is there a STRNINIT variable?). I'm not sure how to set up the init file, so I have these in my .login for now as regular environment variables. Is the init file supposed to be (I use the -d~/strn parameter, so strn uses it's own directory for everything) ~/.strninit, ~/.strnrc, ~/strn/.strninit, ~/strn/.strnrc, or something completely different? I've tried all of those, and also tried it dropping the [s] (.trnrc, etc), and nothing seems to make a bit of difference. Strn just goes right on ignoring everything except what's defined in my .login. However, those two commands work wonderfully aside from that. Thanks much! -- tsalagi@netcom.com Guns, encryption, abortion, equality, corruption, abuse, homelessness, drugs, censorship, religion, conservation, security, politics, pornography, fraud, pollution, commercialism Are we politically correct enough yet, Jeb?
Re: Strn questions
Author: Wayne Davison
Date: Fri, 22 Apr 1994 07:19
Date: Fri, 22 Apr 1994 07:19
13 lines
1309 bytes
1309 bytes
According to <tsalagi@netcom.com>: > I'm not sure how to set up the init file, so I have these in my .login > for now as regular environment variables. What you do in both strn and trn is to define the environment variable TRNINIT in your .login file to be a file name, then create that file and put whatever switches you like into it. The traditional value is "~/.trninit", but you can name it anything you like. If you put the [s]trn environment variables in this file using the -E option you don't have to define them in your .login files as global variables. -- Wayne Davison davison@borland.com
Re: Strn questions
Author: mathew
Date: Fri, 22 Apr 1994 13:36
Date: Fri, 22 Apr 1994 13:36
24 lines
1902 bytes
1902 bytes
In article <tsalagiConEAp.9qu@netcom.com>, <tsalagi@netcom.com> wrote: >In article <CoDF61.9z4@borland.com>, Wayne Davison <davison@borland.com> wrote: >>According to <tsalagi@netcom.com>: >>> 4. How do I save multi-part uuencoded files? I've been able to save and >>> decode single-part files, but that's all. >> >>I select all the pieces to the file in the selector and type ":e dir" (where >>"dir" is the appropriate subdirectory name. You can alternately use the >>"e dir" command while reading the first piece and then use just "e" on each >>successive piece in the posting until it is done, or you can use ":e dir" >>from the article-reading prompt once you've browsed the descriptions. > >Works like a charm! Fetch a copy of munpack from export.acs.cmu.edu. munpack handles MIME as well as uuencode, and often works in situations where :e doesn't. Just do :|munpack instead. Major advantage with munpack is you don't need the parts in the right order, and can mix a whole bunch of random files together and decode them all in one fell swoop. mathew
Re: Strn questions
Author: Larry W. Virden
Date: Fri, 22 Apr 1994 14:37
Date: Fri, 22 Apr 1994 14:37
45 lines
3062 bytes
3062 bytes
Here is a list of the documentation for trn that I have found useful: 1. We start with the trn man page - while quite large, it has a lot of useful info. There are also smaller man pages for Pnews, Rnmail, newsetup, and newsgroups. I don't know if they are up to date with relationship to things like FAST_PNEWS, etc. 2. There are also 2 text files that folk find useful: NEW and HINTS.TRN. These detail the changes in trn as well as a set of hints on things that one can do with it. 3. There is the intro to trn document written by Jon Bell <jtbell@presby.edu> and found at ftp://cs1.presby.edu/pub/trn-intro/trn-3.4* . This gives one a gentle introduction to the use of the command to the first time user. There is also an html version of Version 3.3 at http://www.wimsey.com/wimsey/trnint-3.3.html or http://ocf.berkeley.edu/help/usenet/trnint-3.3.html It is also available on gopher://cs1.presby.edu/11/net-resources/trn-intro 4. There is the KILL file FAQ - killfile-faq - found at places like: gopher://depot.cis.ksu.edu/00/Frequently%20Asked%20Questions%20%28FAQs%29/killfile-faq or http://www.cis.ohio-state.edu/hypertext/faq/usenet/killfile-faq/faq.html 5. Of course there is strn - the scoring/scanning/super trn research project. Source is available on ftp.uu.net just as is the trn source code. The strn help files may provide a bit of additional help in the use of trn! In the old days, there were some reference cards for rn - may have even been one for trn. Anyone have some other sources of useful info on the use of trn or strn? Anyone want to contribute more info - or even better - contribute a new document? How about someone taking on the writing of a document on the 101 uses for trn macros? How about someone taking on a description of neat things one can do with adding trn switches to KILL files? Any takers? -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614 The task of an educator should be to irrigate the desert not clear the forest.
Re: Strn questions
Author: Larry W. Virden
Date: Mon, 25 Apr 1994 14:35
Date: Mon, 25 Apr 1994 14:35
8 lines
1416 bytes
1416 bytes
Actually, isn't there an environment variable you can use which tells trn/strn to use munpack as the default for the :e command? I think it's the UNSHAR variable. -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614 The task of an educator should be to irrigate the desert not clear the forest.
Re: Strn questions
Author: Wayne Davison
Date: Tue, 26 Apr 1994 22:05
Date: Tue, 26 Apr 1994 22:05
9 lines
1128 bytes
1128 bytes
According to Larry W. Virden <lvirden@cas.org>: > Actually, isn't there an environment variable you can use which tells > trn/strn to use munpack as the default for the :e command? I think it's > the UNSHAR variable. That works for shar files, but not for uuencoded files. -- Wayne Davison davison@borland.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