people.redhat.com index
david paeme
david.paeme at belbone.net
Thu Jul 24 10:47:16 UTC 2003
an equally grand scheme:
just slamming ftp://people.redhat.com in mozilla gives you the same
result ;-)
bye,
d.
On Thu, 2003-07-24 at 12:39, André Kelpe wrote:
> Am Mit, 2003-07-23 um 21.21 schrieb Paul Nasrat:
> > Seeing as we're being wonderfully open, any chance the wonderfull index
> > page at people.redhat.com could be removed so there is the directory
> > index instead. Not to worry if not.
> >
> > Cheers
> >
> > Paul
>
>
> I wrote a small workaround in perl to get an working index.html. Don't
> laugh I'm a beginner, but it works. It uses the fact that the ftp access
> to people.redhat.com is still wide open and a simple ls on it gives me
> all the directory names:
>
> #!/usr/bin/perl
> use Net::FTP;
>
>
> $ftp = Net::FTP->new("people.redhat.com", Debug => 0);
> $ftp->login("anonymous",'me at test.net');
> $ftp->cwd("/");
> @data=$ftp->ls("/");
> $ftp->quit;
>
>
> print("<html>\n\r<head></head>\n\r");
> print("<body>");
>
> foreach $a(@data)
> {
> chomp($a);
> print("<a href=\"http://people.redhat.com$a\">$a</a><br>\r\n");
> }
>
> print("</body></html>");
>
> Save this to getIndex.pl, them make it runnable an redirect the output
> to a html-file, like ./getIndex.pl > index.html
>
> HTH
>
> regards André
More information about the devel
mailing list