W3C home > Mailing lists > Public > www-validator@w3.org > June 2003

Re: checklink: Command line usage

From: Ville Skyttä <ville.skytta@iki.fi>
Date: 20 Jun 2003 15:04:54 +0300
To: "'www-validator@w3.org'" <www-validator@w3.org>
Message-Id: <1056110694.30463.11.camel@bobcat.ods.org>

On Fri, 2003-06-20 at 13:05, Ismail Mayat wrote:
> Hello,
> 
> Probably a stupid question, if using link checker via command line can you
> only check a directory structure or can you do spider a site in the same way
> that you spider via the web form,

Yes, you can do everything with the command line interface as with the
online one.  Or actually a bit more like masquerading, timeouts etc.

>   if you can do this does anyone have a
> syntax example i have tried using the help and running the following command
> 
>  ./checklink.pl -l www.kudos-idd.com -h -r -D -1 -h

The --help message could be improved, yes (contributions welcome).  But
there are a couple of problems in the above command line:

1) You didn't specify anything that should be checked, so nothing was
:).  The checklink syntax is "checklink <options> <uris>", I guess
adding http://www.kudos-idd-com/ to the end of the above will do what
you want.

2) "-h" is listed twice, "-D -1" is redundant (implied by -r) and "-l
www.kudos-idd.com" may produce unexpected results.  "-l
http://www.kudos-idd.com/" would be correct, but it's the default anyway
if you're checking http://www.kudos-idd.com/

Maybe you're looking for this:

./checklink.pl -h -r http://www.kudos-idd.com/

HTH,
-- 
\/ille Skyttä
ville.skytta at iki.fi
Received on Friday, 20 June 2003 08:05:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:09 GMT