Re: How do you guys read news offline?
> I thought about using suck to download the news articles I am
> interested in as soon as a PPP is up. But how do I post my own
> articles back to the net? I would really be grateful if someone
> could post his/her working setup.
I use leafnode in conjunction with diald to allow for unattended
retrieval and posting of new articles.
My setup is as follows:
1) Comment out the commands that Debian sets up in
/etc/cron.daily/leafnode. I do this because I want to retrieve more
frequently than once a day to balance the load and because I like my
postings to go out sometime in the near future.
2) Set up a crontab for user "news" like the one in attachment #1.
As root, "crontab -u news -e". This will give you more flexible
scheduling.
3) If you look at the attached crontab file, you'll see I run a
script called /etc/leafnode.fetch. This script is provided as
atttachment #2. Personally, I don't like leafnode's ability to
download newsgroups based upon which ones have been read lately. I
just want it to download the few I read -- even if I only read them
once every two months.
Paul Serice
=====================================================================
ATTACHMENT #1: crontab for user "news"
=====================================================================
# min hr dom moy dow command
0 0,2,4,6,8,10,12,14,16,18,20,22 * * * /etc/leafnode.fetch
35 3 * * * /usr/sbin/texpire
=====================================================================
ATTACHMENT #2: /etc/leafnode.fetch
=====================================================================
#!/bin/sh
#
# MY NOTES: leafnode automatically keeps track of which newsgroups
# have been requested lately in
# /var/spool/news/interesting.groups by "touching" a file
# with the same name as the newsgroup. leafnode will not
# retrieve news from a newsgroup that has not been
# "touched" lately. By running this script right before
# "fetch" runs, you'll be able to specify which newsgroups
# to read, and you won't have to worry about a newsgroup
# being forgotten just because it hasn't been read lately.
#
# IMPORTANT: This file is automatically run periodically from the
# crontab for user "news".
#
cd /var/spool/news
rm -rf interesting.groups
mkdir interesting.groups
chown news.news interesting.groups
chmod 755 interesting.groups
cd interesting.groups
touch comp.lang.c
touch comp.lang.c.moderated
touch comp.lang.c++
touch comp.lang.c++.moderated
touch comp.os.linux.advocacy
touch comp.os.linux.announce
touch comp.os.linux.answers
touch comp.os.linux.development.apps
touch comp.os.linux.development.system
touch comp.os.linux.hardware
touch comp.os.linux.m68k
touch comp.os.linux.misc
touch comp.os.linux.networking
touch comp.os.linux.setup
touch comp.os.linux.x
touch comp.os.ms-windows.announce
touch comp.os.os2.announce
touch comp.protocols.nfs
touch comp.protocols.smb
touch comp.protocols.time.ntp
touch comp.windows.x
touch comp.windows.x.announce
touch comp.windows.x.apps
touch comp.windows.x.i386unix
touch comp.windows.x.intrinsics
touch comp.windows.x.motif
touch rec.humor.funny
touch rec.humor.funny.reruns
exec /usr/sbin/fetch -v
Reply to: