1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
touch_newsgroup
===============
Copyright (c) 1999 Jim Nicholson <j.nicholson@computer.org>
INSTALLATION
------------
touch_newsgroup uses the Net::NNTP module from libnet which can be obtained
from your nearest CPAN mirror.
put touch_newsgroup somewhere (e.g. /usr/local/bin)
put touch_newsgroup.1 somewhere on the MANPATH (e.g. /usr/local/man/man1)
Edit /etc/crontab to run touch_newsgroup every night.
OPTIONS
-------
-v
be verbose, say which article was read from each newsgroup
-f groupfile
read list of newsgroups from file 'groupfile'
-h hostname
name of host running leafnode (default is 127.0.0.1)
groupnames
list of newsgroups
WHAT IT DOES
------------
The script reads the last article from each of the specified newsgroups
using NNTP.
WHY NOT TOUCH THE FILES DIRECTLY ?
----------------------------------
1) If leafnode changes how it works in the future, the script would
need changing. This way it doesn't
2) Avoids race-conditions with leafnode changing file times.
3) I wanted to have a play with Net::NNTP :-)
BUGS
----
It should handle errors more gracefully, at present it just dies with an
appropriate error message.
|