🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3565

perl script < active newsgroups list > hierarchical html links

#3565
From: David Drum
Date: Tue, 18 Apr 1995 00:00
55 lines
2054 bytes
Hi,

I am wondering if some genius out there on the net has written a perl script
which reads in the list of active newsgroups (/usr/local/news/active or
/usr/local/news/newsgroups) and outputs a series of html documents that
lay out USENET in a hierarchical fashion.  I hope I have stated this clearly.

For example, /usr/local/news/newsgroups contains:

alt.foo			Sex, drugs, and foo
alt.bar			Sex, drugs, and bar
soc.flake		Never had a clue
soc.loner.geeks		They built the net
soc.loner.smells	Allergic to bathing

And the output will be:

Document 1:
<a href="http://www.vrinimi.org/document2.html">
Top-level USENET hierarchies<a/>

Document 2:
<a href="http://www.vrinimi.org/document3a.html">
The "alt" hierarchy</a>
<a href="http://www.vrinimi.org/document3b.html">
The "soc" hierarchy</a>

Document 3a:
<a href="news:alt.foo">
Sex, drugs, and foo</a>
<a href="news:alt.bar">
Sex, drugs, and bar</a>

Document 3b:
<a href="news:soc.flake">
Never had a clue</a>
<a href="http://www.vrinimi.org/document4.html">
The "soc.loner" sub-hierarchy</a>

Document 4:
<a href="news:soc.loner.geeks">
They built the net</a>
<a href="news:soc.loner.smells">
Allergic to bathing</a>

I hope this is explicit enough.

Regards,

David
david@services.more.net
--
"That man has a rare gift for obfuscation." -- ST:DS9

Technical Details
Message-ID: <3n1ec6$fuv@news.missouri.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.www.misc.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3n1ec6$fuv@news.missouri.edu>
Subject: perl script < active newsgroups list > hierarchical html links
Date: Tue, 18 Apr 1995 00:00:00 +0000
From: david@services.more.net (David Drum)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.www.misc.mbox.zip!not-for-mail
X-Deja-AN: 101083385
Distribution: inet
Organization: University of Missouri - Columbia
Reply-to: david@services.more.net
Newsgroups: news.software.nntp,comp.infosystems.www.misc,comp.lang.perl