🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by slakmagik Sun, 19 Mar 2006 09:47
[slrn] dotfiles everywhere
#181978
Author: slakmagik
Date: Sun, 19 Mar 2006 09:47
10 lines
1753 bytes
slrn seems to spit out .article, .followup, and .postpone dotfiles
in $HOME. I can't find any reference in the docs to these files and
don't know how to point them elsewhere. I tried setting $TMPDIR,
since the manual does mention that, but no dice. I do have a nice
~/.slrn full of files and subdirectories with everything everywhere
I want it to go, but these files won't cooperate.  It seems like
they should be temp files and automatically deleted (which would be
fine) or, failing that, I'd at least like to stick them in ~/.slrn
or ~/tmp. Any help is much appreciated.
Re: [slrn] dotfiles everywhere
#181979
Author: Peter J Ross
Date: Sun, 19 Mar 2006 12:21
47 lines
2691 bytes
On Sun, 19 Mar 2006 09:47:06 GMT, slakmagik
<j@brokedownpalace.example.net> wrote in news.software.readers:

> slrn seems to spit out .article, .followup, and .postpone dotfiles
> in $HOME. I can't find any reference in the docs to these files and
> don't know how to point them elsewhere. I tried setting $TMPDIR,
> since the manual does mention that, but no dice. I do have a nice
> ~/.slrn full of files and subdirectories with everything everywhere
> I want it to go, but these files won't cooperate.  It seems like
> they should be temp files and automatically deleted (which would be
> fine) or, failing that, I'd at least like to stick them in ~/.slrn
> or ~/tmp. Any help is much appreciated.

To create these files in ~/.slrn istead of ~, you need to set the
$SLRNHOME environment variable to "~/.slrn". E.g., in bash,

   $ export SLRNHOME=~/.slrn

You'll then need to copy or move .jnewsrc and .slrnrc to ~/.slrn/, and
also edit .slrnrc. E.g,

   set save_posts ".slrn/foo/my_posts"

should be changed to

   set save_posts "foo/my_posts"
   
If you want to remove the dotfiles after closing slrn, try something
like this when you open slrn:

   $ slrn && rm ~/.slrn/.followup [etc]


Alternatively, try setting $SLRNHOME to /tmp. You'll have to call slrn
with the -i and -f command line switches in order to locate .jnewsrc
and .slrnrc, and specify full paths in .slrnrc. And I haven't tried
this method myself, so there might be problems with it. Proceed at
your own risk!


PJR :-)
-- 
  _  _(o)_(o)_  _       FSM: http://www.venganza.org/
._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
    / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
 ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
Re: [slrn] dotfiles everywhere
#181981
Author: Whiskers
Date: Sun, 19 Mar 2006 13:28
18 lines
1947 bytes
On 2006-03-19, slakmagik <j@brokedownpalace.example.net> wrote:
> slrn seems to spit out .article, .followup, and .postpone dotfiles
> in $HOME. I can't find any reference in the docs to these files and
> don't know how to point them elsewhere. I tried setting $TMPDIR,
> since the manual does mention that, but no dice. I do have a nice
> ~/.slrn full of files and subdirectories with everything everywhere
> I want it to go, but these files won't cooperate.  It seems like
> they should be temp files and automatically deleted (which would be
> fine) or, failing that, I'd at least like to stick them in ~/.slrn
> or ~/tmp. Any help is much appreciated.

Have you looked in 'Section 4 Directory / File names' of your default 
~/.slrnrc file?

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] dotfiles everywhere
#181986
Author: Peter J Ross
Date: Sun, 19 Mar 2006 14:53
51 lines
3136 bytes
On Sun, 19 Mar 2006 13:28:54 +0000, Whiskers
<catwheezel@operamail.com> wrote in news.software.readers:

> On 2006-03-19, slakmagik <j@brokedownpalace.example.net> wrote:
>> slrn seems to spit out .article, .followup, and .postpone dotfiles
>> in $HOME. I can't find any reference in the docs to these files and
>> don't know how to point them elsewhere. I tried setting $TMPDIR,
>> since the manual does mention that, but no dice. I do have a nice
>> ~/.slrn full of files and subdirectories with everything everywhere
>> I want it to go, but these files won't cooperate.  It seems like
>> they should be temp files and automatically deleted (which would be
>> fine) or, failing that, I'd at least like to stick them in ~/.slrn
>> or ~/tmp. Any help is much appreciated.
>
> Have you looked in 'Section 4 Directory / File names' of your default 
> ~/.slrnrc file?

/usr/share/doc/slrn/examples/slrn.rc.gz on my system.

  % Whether to put temporary files for postings, followups and replies
  % in the directory specified by the TMPDIR environment variable or
  % /tmp.
  %set use_tmpdir 0

I've always understood that to mean that "set use_tmpdir 1" would
cause some temporary files to be put where $TMPDIR specified, while
"set use_tmpdir 0" would cause them to be put in /tmp. I assumed that
the temporary files in question were different from the familiar
.followup, etc. However, this thread suggests otherwise:
http://thread.gmane.org/gmane.network.slrn.user/671

This text would be less ambiguous:

  % If set to 1, temporary files for postings, followups and replies
  % are put in /tmp, or the directory specified by the TMPDIR
  % environment variable if it is set.
  %set use_tmpdir 0


Anyway, "set use_tmpdir 1" seems likely to solve slakmagik's problem,
whether $TMP or $TMPDIR is set or not, and $SLRNHOME might be useful
for keeping everything else in one place.


PJR :-)
-- 
  _  _(o)_(o)_  _       FSM: http://www.venganza.org/
._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
    / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
 ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
Re: [slrn] dotfiles everywhere
#181993
Author: slakmagik
Date: Sun, 19 Mar 2006 17:16
69 lines
4074 bytes
On 2006-03-19 Sun 14:53:59, Peter J Ross wrote:
> On Sun, 19 Mar 2006 13:28:54 +0000, Whiskers
> <catwheezel@operamail.com> wrote in news.software.readers:
>
>> On 2006-03-19, slakmagik <j@brokedownpalace.example.net> wrote:
>>> slrn seems to spit out .article, .followup, and .postpone dotfiles
...
>>
>> Have you looked in 'Section 4 Directory / File names' of your default 
>> ~/.slrnrc file?
>
...
>   %set use_tmpdir 0
>
> I've always understood that to mean that "set use_tmpdir 1" would
> cause some temporary files to be put where $TMPDIR specified, while
> "set use_tmpdir 0" would cause them to be put in /tmp. I assumed that
> the temporary files in question were different from the familiar
> .followup, etc. However, this thread suggests otherwise:
> http://thread.gmane.org/gmane.network.slrn.user/671
>
> This text would be less ambiguous:
>
>   % If set to 1, temporary files for postings, followups and replies
>   % are put in /tmp, or the directory specified by the TMPDIR
>   % environment variable if it is set.
>   %set use_tmpdir 0
>
>
> Anyway, "set use_tmpdir 1" seems likely to solve slakmagik's problem,
> whether $TMP or $TMPDIR is set or not, and $SLRNHOME might be useful
> for keeping everything else in one place.
>
>
> PJR :-)

Yes, it definitely could - even less ambiguous:
 
 % If you don't like persistent .article and .followup files in
 % $HOME, set this to 1 to have them converted to temporary files in
 % $TMPDIR.

:)

I'd gone through the manuals and created a config file with every
possible setting (since the default example seems partial) and,
for that entry, I wrote:

 %[default: ends up finding /tmp, so why bother] use_tmpdir

I took it exactly in the same way you did, PJR . I completely agree
with http://thread.gmane.org/gmane.network.slrn.user/671, as well.
By the time I'd discovered the problem and tried doing things
about it (such as setting TMPDIR) I'd forgotten that setting,
as it hadn't seemed significant and I was looking for .article
and .followup, which I couldn't find anything about. (And I was
thinking there was a .postponed, but that was wrong, as I have a
'set postpone_directory'.) Probably why my web searching failed,
as well - at least I never turned up that gmane archive. But that is
precisely it - now I have ~/tmp/SLRN[random].0, and I assume it will
be deleted when I post this.

As far as setting SLRNHOME, I should have done that, I guess. I wasn't
sure of the full effect, and had just specified .slrn/foo in several
places. So I should fix that, too.

slrn's documentation is excellent but that item, at least, seems like
it could be clearer. Thank you both very much. :)
Re: [slrn] dotfiles everywhere
#182215
Author: MikesBrain
Date: Wed, 22 Mar 2006 10:16
55 lines
3258 bytes
2006-03-19, Responding to Whiskers...
> On 2006-03-19, slakmagik <j@brokedownpalace.example.net> wrote:
>> slrn seems to spit out .article, .followup, and .postpone dotfiles
>> in $HOME. I can't find any reference in the docs to these files and
>> don't know how to point them elsewhere. I tried setting $TMPDIR,
>> since the manual does mention that, but no dice. I do have a nice
>> ~/.slrn full of files and subdirectories with everything everywhere
>> I want it to go, but these files won't cooperate.  It seems like
>> they should be temp files and automatically deleted (which would be
>> fine) or, failing that, I'd at least like to stick them in ~/.slrn
>> or ~/tmp. Any help is much appreciated.
>
> Have you looked in 'Section 4 Directory / File names' of your default 
> ~/.slrnrc file?

I like to keep my data on a separate partition and mount a 
user's data dir to ~/DATA. So, .slrnrc contains...

set save_posts "DATA/.slrn/news/Posts"
set save_replies "DATA/.slrn/news/Replies"
set failed_posts_file "DATA/.slrn/dead.letter"
set scorefile "DATA/.slrn/news/Score.Mike"
set decode_directory "DATA/.slrn/news"
set save_directory "DATA/.slrn/news"
set postpone_directory "DATA/.slrn/news/postponed"

...and as they don't "wander" or "infest" ~/, I don't really
care if they "live" in the dirs I've told them to. Notice
I've used a dot dir to keep the slrn data files "out of the
way" too.

One thing that I had to learn by "dabbling", was that SLRN 
gets upset if you follow "normal" practices and write the 
target dir with the usual (BASH?) preceding ~/

I recall Lynx has a few similar config irritations, and I've
had a few mumbles about developers that adopt these odd
string requirements, but WTH, genius can be forgiven it's
oddities huh? ;\


I assume you've read through...

http://slrn.sourceforge.net/manual/slrn-manual.html
http://slrn.sourceforge.net/manual/slrn-FAQ.html

...?


Mike@N.UK
-- 
----
*  MikesBrain+WebStuff  @ http://tinyurl.com/5ayqt
*  Stealth-Tracking the public - www.spychips.org
*  (Your) Electronic Freedom Foundation - www.eff.org
Re: [slrn] dotfiles everywhere
#182223
Author: Whiskers
Date: Wed, 22 Mar 2006 14:02
19 lines
1682 bytes
On 2006-03-22, MikesBrain <Mike@N.UK> wrote:
> 2006-03-19, Responding to Whiskers...

snip

> I assume you've read through...
>
> http://slrn.sourceforge.net/manual/slrn-manual.html
> http://slrn.sourceforge.net/manual/slrn-FAQ.html
>
> ...?

I haven't read them as Literature, but I do have local copies 'linked' 
from my 'personal bar' in Opera  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
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