old-www/pub/Linux/docs/ldp-archived/mail_archives/ldp-discuss/msg02335.html

135 lines
4.6 KiB
HTML

<!-- MHonArc v2.5.0b2 -->
<!--X-Subject: Announce: Link check micro&#45;HOWTO -->
<!--X-From-R13: Egrva Uwbra <ftwbraNznvy.alk.arg> -->
<!--X-Date: Mon, 8 May 2000 12:39:58 &#45;0400 (EDT) -->
<!--X-Message-Id: 3916EDA9.A43E36DE@mail.nyx.net -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
<html>
<head>
<title>Announce: Link check micro-HOWTO</title>
<link rev="made" href="mailto:sgjoen@mail.nyx.net">
</head>
<body>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
<hr>
[<a href="msg02334.html">Date Prev</a>][<a href="msg02336.html">Date Next</a>][<a href="msg02332.html">Thread Prev</a>][<a href="msg02338.html">Thread Next</a>][<a href="maillist.html#02335">Date Index</a>][<a href="threads.html#02335">Thread Index</a>]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<h1>Announce: Link check micro-HOWTO</h1>
<hr>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<ul>
<li><em>To</em>: LDP &lt;<A HREF="mailto:ldp-discuss@lists.linuxdoc.org">ldp-discuss@lists.linuxdoc.org</A>&gt;</li>
<li><em>Subject</em>: Announce: Link check micro-HOWTO</li>
<li><em>From</em>: Stein Gjoen &lt;<A HREF="mailto:sgjoen@mail.nyx.net">sgjoen@mail.nyx.net</A>&gt;</li>
<li><em>Date</em>: Mon, 08 May 2000 18:39:05 +0200</li>
<li><em>Resent-date</em>: Mon, 8 May 2000 12:39:58 -0400 (EDT)</li>
<li><em>Resent-from</em>: <A HREF="mailto:ldp-discuss@lists.debian.org">ldp-discuss@lists.debian.org</A></li>
<li><em>Resent-message-id</em>: &lt;pZhIy.A.rhF.L3uF5@murphy&gt;</li>
<li><em>Resent-sender</em>: <A HREF="mailto:ldp-discuss-request@lists.debian.org">ldp-discuss-request@lists.debian.org</A></li>
</ul>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<hr>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<pre>
I am sure I am not the only one who has a problem with link rot
in the links in my HOWTO. Using bookmark check in a browser just
didn't cut the ice, so I just had to hammer out this micro-HOWTO
on how I solved the problem, hoping it can save us all some work.
Start by downloading the link-check.pl Perl script from
<A HREF="http://www.jwz.org/hacks/check-links.pl">http://www.jwz.org/hacks/check-links.pl</A>
(from <A HREF="http://www.jwz.org/hacks/marginal.html">http://www.jwz.org/hacks/marginal.html</A>)
Next run
sgml2html --split=0 howto.sgml
in order to create a single HTML file, for convenience.
Next run the script
perl ./check-links.pl HOWTO.html &gt; res.html
and then view the file.
For your convenience I have the output from my own
HOWTO (about 180 links) displayed here:
<A HREF="http://www.nyx.net/~sgjoen/res.html">http://www.nyx.net/~sgjoen/res.html</A>
Interpretation is straight forward.
It should be noted that links like
<A HREF="http://www.linuxdoc.org">http://www.linuxdoc.org</A>
might get a &quot;moved here temporarily&quot; indication, pointing to
<A HREF="http://www.linuxdoc.org/">http://www.linuxdoc.org/</A>
note the extra trailing slash (&quot;/&quot;), which when added makes the
web browser save an extra step in locating the proper page.
Finally do the test again since there is a small shortcoming in
the link checker: a link forwarded to another link is not checked
for reforwarding. Example:
<A HREF="http://www.a.net/">http://www.a.net/</A>
might give a &quot;Moved to&quot; to
<A HREF="http://www.b.net/">http://www.b.net/</A>
but testing the line above might again give you a &quot;Moved to&quot; to
<A HREF="http://www.c.net/">http://www.c.net/</A>
so you have to either iterate until the end or improve the
script.
In the longer term this should probably be part of the
authors guide/resources section.
Regards,
Stein Gjoen
--
To UNSUBSCRIBE, email to ldp-discuss-request@lists.debian.org
with a subject of &quot;unsubscribe&quot;. Trouble? Contact listmaster@lists.debian.org
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg02334.html">Re: if SGML is so great...</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg02336.html">Re: Email Aliases</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg02332.html">Announce: template for big HOWTOs</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg02338.html">Re: LDP</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#02335"><strong>Date</strong></a></li>
<li><a href="threads.html#02335"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>