Article View: news.software.readers
Article #2149configuring tin to use shared index files
From: G.D.Pratt
Date: Mon, 14 Sep 1992 13:14
Date: Mon, 14 Sep 1992 13:14
57 lines
3093 bytes
3093 bytes
With tin5 1.1 PL5 (soon to be pl6) we want to read the articles from a news server over NNTP but have shared index on our main user machine in /usr/local/lib/news/.tin/.index. Is it possible to configure a version of tin that will find this index without having to use the -I flag? I built the "dynix" version with these flags:- # For Sequent DYNIX dynix: @echo "Compiling for Sequent DYNIX..." @$(MAKE) CC=$(CC) CFLAGS='$(COPTS) -DBSD -DNNTP_ABLE -DNO_NNTP_EXTS -DNNTP_INEWS_GATEWAY=\"$(NNTP_INEWS_GATEWAY)\" -DNNTP_INEWS_DOMAIN=\"$(NNTP_INEWS_DOMAIN)\" -DLIBDIR=\"$(LIBDIR)\" -DSPOOLDIR=\"$(SPOOLDIR)\"' \ LIBS="-lcurses -ltermcap -lseq" \ EXE=tin linkit This works OK if:- 1) tin is set group ID:- ~/tin-1.1pl5/ > chmod 2775 tin ~/tin-1.1pl5/ > ls -lg tin -rwxrwsr-x 1 news news 289130 Sep 11 16:40 tin* 2) is invoked with -I flag as in tin -r -I/usenet/.tin/.index comp.text.tex Is the locking mechanism necessary - haven't seen any problems so far. /usenet/.tin/.index just contains group news owned files created by different users reading the news:- ls -alg /usenet/.tin/.index/ total 149 drwxrwx--- 2 news news 512 Sep 11 16:42 ./ drwxrwx--- 3 news news 512 Sep 11 14:36 ../ -rw-r--r-- 1 cca13 news 25296 Sep 11 15:15 10.1 -rw-r--r-- 1 cca13 news 13318 Sep 11 15:07 1088.1 -rw-r--r-- 1 cca13 news 22911 Sep 11 14:55 128.1 -rw-r--r-- 1 gerry news 3512 Sep 11 14:59 1401.1 -rw-r--r-- 1 gerry news 900 Sep 11 14:50 251.1 -rw-r--r-- 1 gerry news 1824 Sep 11 15:19 330.1 -rw-r--r-- 1 gerry news 2382 Sep 11 14:51 358.1 -rw-r--r-- 1 gerry news 2309 Sep 11 14:59 411.1 -rw-r--r-- 1 cca13 news 45511 Sep 11 16:42 500.1 -rw-r--r-- 1 gerry news 17041 Sep 11 15:17 528.1 -rw-r--r-- 1 gerry news 9989 Sep 11 16:38 551.1 The reason we want to set it up like this is that running tind every 30 mins or so on the news server machine seems to use a lot of CPU time (> 30 mins). Also having it setup like this means that the most frequently read newsgropus will have automatically updated indexes. gerry -- gerry pratt -- workstation support -- university of keele email: gerry@seq1.keele.ac.uk * telephone : 0782 583072 "these opinions are mine, mine, Mine.....ALL MINE I TELL YOU!"
Technical Details
Message-ID:
<BuKKs9.1rq@gabriel.keele.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!mcsun!uknet!keele!seq1!gerryShow Full Headers
Complete Article Headers
Message-ID: <BuKKs9.1rq@gabriel.keele.ac.uk> Subject: configuring tin to use shared index files Date: Mon, 14 Sep 1992 13:14:32 +0000 From: gerry@seq1 (G.D.Pratt) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!mcsun!uknet!keele!seq1!gerry Newsgroups: news.software.readers Sender: news@gabriel.keele.ac.uk (UseNet News Service) Organization: University of Keele, England Lines: 57 Nntp-Posting-Host: seq1.cc.keele.ac.uk X-Newsreader: Tin 1.1 PL5