jaalto
Group: Members
Posts: 5
Joined: Jan. 2005 |
|
Posted: Jan. 17 2005,22:13 |
|
It seems that the default URL for manual pages us not working any more from Europe. It says:
$ man man ...
Forbidden You don't have permission to access /cgi-bin/unixhelp/man-cgi on this server.
Apache/1.3.28 Server at mirrors.ccs.neu.edu Port 80
- - - - - - - -
Here is patch. It would be nice to be able to copy paste the URL also to other browser, since links(1) does not allow copying text with mouse from the terminal.
--- /usr/local/bin/man.orig 2005-01-18 00:03:22.000000000 -0500 +++ /usr/local/bin/man 2005-01-18 00:10:36.000000000 -0500 @@ -3,6 +3,7 @@ # written for Damn Small Linux by John Andrews March 07 2004 use strict; +my $MANURL='http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?'; my $usage = "What manual page do you want?\nUsage:\tman [application]\n"; my ($where, $ls_l, $bb_yes_no, $is_bb, $grab, @info, @if_bb ); @@ -46,8 +47,9 @@ else { - $grab = 'http://mirrors.ccs.neu.edu/cgi-bin/unixhelp/man-cgi?' . $ARGV[0]; + $grab = $MANURL . $ARGV[0]; } -system("links $grab") +system("links $grab"); +print $grab, "\n";
|