home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3479 < prev    next >
Internet Message Format  |  1991-06-11  |  912b

  1. From: clarsen@lbl.gov (Case Larsen)
  2. Newsgroups: alt.sources
  3. Subject: Perl script to automate switching between NNTP servers
  4. Message-ID: <CLARSEN.91Jun11113008@intruder.lbl.gov>
  5. Date: 11 Jun 91 16:30:08 GMT
  6.  
  7. This Perl script (as the subject line says) allows a user to switch
  8. between NNTP servers and keep unread articles unread, read articles
  9. read.
  10.  
  11. You will want to create a file socket.pl from the header file
  12. <sys/socket.h>.  Just do:
  13.     h2ph < /usr/include/sys/socket.h > socket.pl
  14.  
  15. You probably want to customize the $libdir variable (where the
  16. message-ID caches for the newsgroups are placed).
  17.  
  18. If you are only going to run this program once, you can remove the
  19. dbmopen and dbmclose commands to 'turn off' caching.
  20.  
  21. --
  22. --
  23. Case Larsen
  24. clarsen@lbl.gov           uunet!ucbvax!lbl-csam!clarsen
  25. Voice: (415) 486-5601     Fax: 486-5548
  26. Lawrence Berkeley Laboratory,
  27. One Cyclotron Road -- MS 50F, Berkeley CA 94720
  28.