people.redhat.com index
André Kelpe
fs111 at web.de
Thu Jul 24 10:39:31 UTC 2003
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é
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20030724/14ebff7d/attachment.sig>
More information about the fedora-devel-list
mailing list