Perl script to automate switching between NNTP servers

Case Larsen clarsen at lbl.gov
Wed Jun 12 02:30:08 AEST 1991


This Perl script (as the subject line says) allows a user to switch
between NNTP servers and keep unread articles unread, read articles
read.

You will want to create a file socket.pl from the header file
<sys/socket.h>.  Just do:
	h2ph < /usr/include/sys/socket.h > socket.pl

You probably want to customize the $libdir variable (where the
message-ID caches for the newsgroups are placed).

If you are only going to run this program once, you can remove the
dbmopen and dbmclose commands to 'turn off' caching.

--
--
Case Larsen
clarsen at lbl.gov           uunet!ucbvax!lbl-csam!clarsen
Voice: (415) 486-5601     Fax: 486-5548
Lawrence Berkeley Laboratory,
One Cyclotron Road -- MS 50F, Berkeley CA 94720



More information about the Alt.sources mailing list