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

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 UTC