- From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
- Date: Thu, 23 May 2002 15:24:45 +0000
- To: Dave Goodall <dgoodall@insweb.com>
- CC: html-tidy@w3.org
> ---------- Forwarded message ---------- Dave which version of tidy do you use? You can get the latest build at http://tidy.sf.net, please include the version number when reporting an error (see the FAQs at http://tidy.sourceforge.net/docs/faq.html for details). > I hope these comments will helpt to improve it: > > Running out-of-the-box on a vanilla NT platform > > 1. tidy -f errs.txt index.html outputs a 0 size errs.txt file This only writes errors and warnings to the file, so if the input file is in good shape, errs.txt will be empty (which allows for convenient checking of the tidy result, something like if test -z errs.txt ...) > 2. with the otherwise vanilla example cfg file supplemented wit an > error-file option: > // Tidy Config file > error-file: errs.txt > indent: auto > indent-spaces: 2 > yadda yadda .... > > tidy index.html still puts out an 0 byte errs.txt file Same here. > 3. The 2>&1 trick does NOT work to re-direct output. > I finally used a wrapper program i wrote to launch tidy under it and > catch and re-direct it's output. tidy index.html 2>&1 >nul prints the messages to stdout, and discards the file output. tidy index.htlm 2>&1 >file prints the messages to stdout, and the file output to file. What behaviour do you see from tidy? -- Klaus Johannes Rusch KlausRusch@atmedia.net http://www.atmedia.net/KlausRusch/
Received on Thursday, 23 May 2002 11:26:16 UTC