Thread View: news.software.readers
3 messages
3 total messages
Started by Ken Keen
Mon, 22 Jun 1998 00:00
[slrn] Can I customize the tmp files names vs. always .article, .letter and .followup?
Author: Ken Keen
Date: Mon, 22 Jun 1998 00:00
Date: Mon, 22 Jun 1998 00:00
59 lines
2156 bytes
2156 bytes
I am using
* SunOS 5.6 on a Sparc
* slrn 0.9.4.6
I use slrn to connect to three different newservers, sometimes at the same
time (via screen).
Works fine but I get conflicts if I am in the middle of replying, following up
or posting on Newserver A and I want to do the same on Newserver B.
My question: Are the tmp file names (.article, .letter, .followup)
customizable via .slrnrc so that I may avoid this conflict? For instance, I
already handle settings for my three newservers in .slrnrc and I would want to
add for each section:
#ifdef ALTOPIA
set article_filename .article_altopia
set followup_filename .followup_altopia
set letter_filename .letter_altopia
#elifdef TELEPORT
set article_filename .article_teleport
etc.
Or do I simply set
set use_tmpdir 1
and then set the TMPDIR env variable for each newserver in the .slrnrc or
modifying my ksh command to set same? This is how I call, for instance,
altopia:
altopia () {
/usr/local/bin/slrn0.9.4.6 -DALTOPIA --nntp -h news.alt.net
}
I presume I would simply modify it to this:
altopia () {
export TMPDIR="~/News/Altopia_Tmp/"
/usr/local/bin/slrn0.9.4.6 -DALTOPIA --nntp -h news.alt.net
}
When trying this, emacs (my slrn editor) worked ok, using the filename
"SLRNF50A74C5.0" in News/Altopia_Tmp/
I guess that is an OK work-around unless others have even niftier thoughts on
the matter.
--
Man From Utopia
Re: [slrn] Can I customize the tmp files names vs. always .article, .letter and .followup?
Author: Dawn Owens-Nicholson
Date: Mon, 22 Jun 1998 00:00
Date: Mon, 22 Jun 1998 00:00
15 lines
1355 bytes
1355 bytes
Some anonymous user wrote: > My question: Are the tmp file names (.article, .letter, .followup) > customizable via .slrnrc so that I may avoid this conflict? No, but slrn could use something even more unique to allow for multiple followups/replies/etc. from the same slrn (perhaps postponing without requiring a filename could use this). To do this, the process ID is a traditional Unix choice for making unique filenames (e.g., ".followup-12345" for process 12345). Perhaps a setting with percent escapes (one which stood for a PID) would be a way to get the best of both worlds (customizable, but still allow PID in the name) with a default using the slrn PID.
Re: [slrn] Can I customize the tmp files names vs. always .article, .letter and .followup?
Author: Heikki Kantola
Date: Wed, 08 Jul 1998 00:00
Date: Wed, 08 Jul 1998 00:00
50 lines
2514 bytes
2514 bytes
Ken Keen <TroubleEveryDay@Dangerous.Kitchen> informed
news.software.readers with the following:
>I use slrn to connect to three different newservers, sometimes at the same
>time (via screen).
>
>Works fine but I get conflicts if I am in the middle of replying, following up
>or posting on Newserver A and I want to do the same on Newserver B.
>
>My question: Are the tmp file names (.article, .letter, .followup)
>customizable via .slrnrc so that I may avoid this conflict?
No, only way to change those names is via editing relevant variables in
slrnfeat.h-file before compiling.
>Or do I simply set
>
> set use_tmpdir 1
>
>and then set the TMPDIR env variable for each newserver in the .slrnrc or
>modifying my ksh command to set same? This is how I call, for instance,
>altopia:
>
>altopia () {
> /usr/local/bin/slrn0.9.4.6 -DALTOPIA --nntp -h news.alt.net
> }
>
>I presume I would simply modify it to this:
>
>altopia () {
> export TMPDIR="~/News/Altopia_Tmp/"
> /usr/local/bin/slrn0.9.4.6 -DALTOPIA --nntp -h news.alt.net
> }
>
>When trying this, emacs (my slrn editor) worked ok, using the filename
>"SLRNF50A74C5.0" in News/Altopia_Tmp/
>
>I guess that is an OK work-around unless others have even niftier thoughts on
>the matter.
That sounds viable option, altho I would suggest to use NNTPSERVER
enviroment variable to select server and do the server depency checks
in .slrnrc againts its value using if$ENV preprocessor command.
--
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.
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