head 1.5; access; symbols; locks alexis:1.5; strict; comment @# @; 1.5 date 98.09.05.08.42.20; author alexis; state Exp; branches; next 1.4; 1.4 date 98.09.02.11.59.15; author alexis; state Exp; branches; next 1.3; 1.3 date 98.09.02.08.20.12; author alexis; state Exp; branches; next 1.2; 1.2 date 98.09.02.08.08.15; author alexis; state Exp; branches; next 1.1; 1.1 date 98.09.01.17.59.49; author alexis; state Exp; branches; next ; desc @@ 1.5 log @removed background colours @ text @

Alexis's HelpMe Pages: Linux Sysadmin Tasks: News: Retrieving the current list of newsgroups

  • Go online
  • Run the command:

    root# script

  • Run the command:

     root# telnet <name_of_your_news_server> nntp

  • Wait for a status message and then enter the command:

    list

    this will take a little while to run
  • When a single period appears at the beginning of the line, indicating that the remote end has completed the command, enter the command:

    quit

  • Back at the Unix prompt, end the script session by typing CTRL-D.
  • Strip out the list of newsgroups and their posting status with the commands:

    root# sed 's/^\([^ ][^ ]*\) [0-9][0-9]* [0-9][0-9]* \([mxyn]\).*$/\1 \2/'  < typescript > ngl-`date '+%y%m%d%H%M'`
    root# chmod 644 ngl-*



  • Move the resulting list file to sensible place, such as /usr/local/doc/

  • $Header: /diska/home/alexis/dev/helpme/doc/linux-sysadmin-tasks/news/RCS/list-of-newsgroups.html,v 1.4 1998/09/02 11:59:15 alexis Exp alexis $ @ 1.4 log @changed RCS Id for RCS Header to get full path @ text @a2 2 d4 1 a4 1 d56 1 a56 1

    $Header: list-of-newsgroups.html,v 1.3 1998/09/02 08:20:12 alexis Exp alexis $ @ 1.3 log @corrected RCS id problem @ text @d58 1 a58 1

    $Id$ @ 1.2 log @changed images path to be relative changed RCS id from 'Header' to 'Id' @ text @d58 1 a58 2

    $Id: /home/ct/serco/ahuxley/docs/html/serco-faq/new/network-services/news/RCS/index.html,v 1.1 1997/06/13 12:34:31 ahuxley Exp $ @ 1.1 log @Initial revision @ text @d56 1 a56 1
    d58 1 a58 1

    $Header: /home/ct/serco/ahuxley/docs/html/serco-faq/new/network-services/news/RCS/index.html,v @