🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by bclark Fri, 24 Jan 1997 00:00
Saving state info as you go in tin?
#30057
Author: bclark
Date: Fri, 24 Jan 1997 00:00
34 lines
1659 bytes
I often leave myself in tin for long periods of inactive time while
logged on to my ISP.  Invariably, the ISP logs me out, killing the tin
process.  The problem with this is that my state information is
discarded so that when I come back into tin, all of the articles I
had read are marked unread.

One solution I had was to write a process wrapper in C for tin that
will monitor my activity, warn me that it is going to shut down tin
gracefully and then do so if I don't take action.  

Now for the questions:

1. Is there better way then what I described above?

2. Has anyone already done what I described above.

3. If no to 1 and 2, how does one shut tin down gracefully from a
a parent process.  Is it just a matter of making sure a certain temp
file is saved for future use as an active file, or is it more complex
then this?

Thanks in advance



-- 
Brian Clark -- Software Design/Development Consultant
bclark@crosslink.net	ph 703-440-0630
C++, C, OO design (Booch), Java, Perl, BSDSock, Winsock, UNIX, WINDOWS,
DOS, and much more.
"I wish I didn't know now what I didn't know then" - Bob Seger

Re: Saving state info as you go in tin?
#30138
Author: doug haire
Date: Sat, 25 Jan 1997 00:00
41 lines
2015 bytes

Why not just get in the habit of Quitting (using the upper case q) when
you are going to be away from the computer for an extended period? That
would seem to be the simplest solution and one that requires the least
amount of work.

bclark@crosslink.net wrote:
: I often leave myself in tin for long periods of inactive time while
: logged on to my ISP.  Invariably, the ISP logs me out, killing the tin
: process.  The problem with this is that my state information is
: discarded so that when I come back into tin, all of the articles I
: had read are marked unread.
: 
: One solution I had was to write a process wrapper in C for tin that
: will monitor my activity, warn me that it is going to shut down tin
: gracefully and then do so if I don't take action.  
: 
: Now for the questions:
: 
: 1. Is there better way then what I described above?
: 
: 2. Has anyone already done what I described above.
: 
: 3. If no to 1 and 2, how does one shut tin down gracefully from a
: a parent process.  Is it just a matter of making sure a certain temp
: file is saved for future use as an active file, or is it more complex
: then this?
: 
: Thanks in advance
: 
: 
: 
: -- 
: Brian Clark -- Software Design/Development Consultant
: bclark@crosslink.net	ph 703-440-0630
: C++, C, OO design (Booch), Java, Perl, BSDSock, Winsock, UNIX, WINDOWS,
: DOS, and much more.
: "I wish I didn't know now what I didn't know then" - Bob Seger

Re: Saving state info as you go in tin?
#30308
Author: Jason Faultless
Date: Mon, 27 Jan 1997 00:00
16 lines
1237 bytes
bclark@crosslink.net wrote:
| I often leave myself in tin for long periods of inactive time while
| logged on to my ISP.  Invariably, the ISP logs me out, killing the tin
| process.  The problem with this is that my state information is
| discarded so that when I come back into tin, all of the articles I
| had read are marked unread.

What is 'reread_active_file' set to in your $HOME/.tin/tinrc file ?
If you're using any of the 1.3 versions of tin, then your record
of read articles will be saved every time this many seconds has 
passed.

Jason.

Re: Saving state info as you go in tin?
#30361
Author: bclark
Date: Tue, 28 Jan 1997 00:00
46 lines
2139 bytes
Jason Faultless (jxfaultl@bechtel.com) wrote:
: bclark@crosslink.net wrote:
: | I often leave myself in tin for long periods of inactive time while
: | logged on to my ISP.  Invariably, the ISP logs me out, killing the tin
: | process.  The problem with this is that my state information is
: | discarded so that when I come back into tin, all of the articles I
: | had read are marked unread.
: 
: What is 'reread_active_file' set to in your $HOME/.tin/tinrc file ?
: If you're using any of the 1.3 versions of tin, then your record
: of read articles will be saved every time this many seconds has 
: passed.
: 
: Jason.

I just checked it and did some experimenting.  The variable
reread_active_file_secs was set to 600 seconds.  I changed it to 30
seconds, saved the file and ran tin.  I then went to the
comp.lang.java.announce newsgroup and read all of the articles.  I
waited well over thirty seconds and then from another window, killed
the tin process.  Upon coming back into tin these articles were again
marked unread.  

Did I fail to follow your instructions correctly?

The variable is set as follows

reread_active_file_secs=30

My tin version is
tin 1.3 950824BETA PL0 [UNIX] 

I am, by the way, running tin -r

Thanks in advance

BC

Brian Clark -- Software Design/Development Consultant
bclark@crosslink.net	ph 703-440-0630
C++, C, OO design (Booch), Java, Perl, BSDSock, Winsock, UNIX, WINDOWS,
DOS, and much more.
"I wish I didn't know now what I didn't know then" - Bob Seger

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