W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

Re: Who has a local install of validator run from command line?

From: John Murdie <john@cs.york.ac.uk>
Date: Thu, 2 May 2002 09:54:23 +0100 (BST)
To: www-validator@w3.org
cc: John Murdie <john@cs.york.ac.uk>
Message-Id: <E173CMA-00059K-00@minster.cs.york.ac.uk>
On  1 May, Terje Bless wrote:
> John Murdie <john@cs.york.ac.uk> wrote:
> 
>> /* Arrange that perl check script finds correct directory from $0. */
>> argv[0] = "/var/www/validator-20010913/";
> 
> argv[0] should contain the full path to the "check" CGI script. And then
> you need:
> 
>   argv[1] = "uri=http://www.cnn.com/";
> 
>> execv("/var/www/validator-20010913/httpd/cgi-bin/check", argv);
>>  
>>}

Yes, silly me; actually, I need execve() rather than execv() in order to
set QUERY_STRING in the validator's environment. I realised this at home
last night! Still, I think I'll install the WDG Validator - I see that
Debian and Red Hat packages are available.
-- 

John A. Murdie
Experimental Officer (Software)
Department of Computer Science
University of York
England
Received on Thursday, 2 May 2002 05:00:43 GMT

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