news.utdallas.edu!wupost!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!news2.cis.umn.edu!gopher-news-daemon@boombox.micro.umn.edu Wed Mar  3 13:27:38 CST 1993
Article: 1082 of comp.infosystems.gopher
Xref: feenix.metronet.com comp.infosystems.gopher:1082
Path: feenix.metronet.com!news.utdallas.edu!wupost!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!news2.cis.umn.edu!gopher-news-daemon@boombox.micro.umn.edu
Date: Tue, 2 Mar 1993 19:13:06 +0000 (GMT)
From: M.T.Hamilton@lut.ac.uk (Martin Hamilton)
Sender: Martin Hamilton <M.T.Hamilton@lut.ac.uk>
Reply-To: Martin Hamilton <M.T.Hamilton@lut.ac.uk>
#Subject: Alex<->Gopher gateway hack
Original-To: vac+alex-servers@cs.cmu.edu
Original-Cc: gopher-news@boombox.micro.umn.edu
Message-ID: <Pine.3.05.9303011846.D828-b101000@genie.lut.ac.uk>
Mime-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1461776719-820874578-731102278:#3747"
Newsgroups: comp.infosystems.gopher
Distribution: comp
Sender: news@news2.cis.umn.edu
Approved: comp.infosystems.gopher@news.cis.umn.edu
Lines: 59

--1461776719-820874578-731102278:#3747
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

Attached to this message is a gopher gateway (go4gw) module called
g2alexhack (derived from g2ftphack), which lets gopher users make links to
directories in the Alex filesystem. 

This might be useful to someone running a gopher server on top of /alex as
the combination lets gopher users browse the subset of the anonymous ftp
namespace that the server knows about. 

An interesting implication of all this is that since the Alex server
learns new hosts and filenames from the people who use it, the links you
make are fed back into it.  So, in this context at least, gopher's
acquired read/write capabilities! 

Take a look in gopher://genie.lut.ac.uk/1/Alex if this sounds interesting.

Martin

--1461776719-820874578-731102278:#3747
Content-Type: APPLICATION/octet-stream; name=g2alexhack
Content-ID: <Pine.3.05.9303021958.A3747@genie.lut.ac.uk>
Content-Description: g2alexhack

#/usr/local/bin/perl

#----------------------------------------------------------------------
# variables you should change:

$Alexhost = "genie.lut.ac.uk";
$Alexport = 8001;

#----------------------------------------------------------------------

sub alexhack_main {
    local($_) = @_;
    
    if (/^$/) {
	&Greply("7Go to any point in the Alex filesystem\t$Ggw\t$Ghost\t$Gport");
	&Greply(".");
	exit(0);
    }
    else {
	$_ =~ s/^\/alex\///;
	&Greply("1Link to /alex/$_\t$_\t$Alexhost\t$Alexport");
	&Greply(".");
    }
    exit(0);

}




1; # for require

--1461776719-820874578-731102278:#3747--



