Article View: aus.netstatus
Article #88Re: Cacheing at archie.au (was Re: US link is upgraded)
From: Craig Warren
Date: Mon, 22 Mar 1993 13:12
Date: Mon, 22 Mar 1993 13:12
33 lines
1559 bytes
1559 bytes
Anyone who has ncftp installed on their Unix box (and I recommend
you do), might like the following script which uses the alex
filesystem/cache to fetch files from overseas.
I call this alex, and when I want to get something, I tend to say
alex some.site.overseas:/some/path/name/to/ftp &
Sure, it takes a little longer, but who really cares how long FTP
takes?
Written by Michael Henry...
#!/usr/local/bin/perl
$alexhost="archie.au";
foreach $arg (@ARGV) {
if ( $arg =~ /:/ || $arg =~ /.+\..+/ ) {
($host,$path) = split(':', $arg);
$host = join('/', reverse split(/\./, $host));
if ( ($path ne "") && ($path !~ m,^/,) ) {
$path = "/$path";
}
$arg = "$alexhost:/alex/$host$path";
}
}
unshift(@ARGV,"ncftp");
exec(@ARGV);
Technical Details
Message-ID:
<1oke00INN43m@rastaban.cc.deakin.OZ.AU>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!sol.deakin.OZ.AU!rastaban.cc.deakin.OZ.AU!not-for-mailReferences:
<1o8irgINNejm@munnari.OZ.AU> <matth.732433404@extro.ucc.su.OZ.AU> <kre.732462300@mundamutti.cs.mu.OZ.AU>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8e85,4547fb376b93aeab X-Google-Attributes: gidf8e85,public X-Google-Thread: 10d2f7,4547fb376b93aeab X-Google-Attributes: gid10d2f7,public X-Google-ArrivalTime: 1993-03-22 20:01:27 PST Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!sol.deakin.OZ.AU!rastaban.cc.deakin.OZ.AU!not-for-mail From: ccw@deakin.edu.au (Craig Warren) Newsgroups: aus.netstatus,aus.aarnet Subject: Re: Cacheing at archie.au (was Re: US link is upgraded) Date: 22 Mar 1993 23:12:32 +1000 Organization: Deakin University Lines: 34 Message-ID: <1oke00INN43m@rastaban.cc.deakin.OZ.AU> References: <1o8irgINNejm@munnari.OZ.AU> <matth.732433404@extro.ucc.su.OZ.AU> <kre.732462300@mundamutti.cs.mu.OZ.AU> NNTP-Posting-Host: rastaban.cc.deakin.oz.au