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 -n 's/^\([^ ][^ ]*\) [0-9][0-9]* [0-9][0-9]* \([mxyn]\).*$/\1 \2/p' < typescript | egrep '^(alt|comp|demon|linux|news|rec|sci|soc|uk)\.' | sort > 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-sa/news/RCS/list-of-newsgroups.html,v 1.5 1998/09/05 08:42:20 alexis Exp alexis $