Re: Successful system call output going to error log



It might be that xmllint sends its messages to the standard error. You
can redirect it to stdout or /dev/null:

xmllint --noout --schema validate.xsd file.xml2> /dev/null
xmllint --noout --schema validate.xsd file.xml2>&1

Jackpot! Gracias Alvaro. Redirected it to stdout and now its working
as expected. The file paths weren't an issue. Also since the last
line is all I'm interested in, system() works great.

Cheers,
Paul
.



Relevant Pages

  • Re: Backgrounding a stream, and sendmail?
    ... >> just redirect the output to a file instead of sendmail.) ... > shell command like ... when prog_b has it's stdout redirected nothing ... > is done instead of printing to stdout you could start sendmail from within ...
    (comp.os.linux.development.apps)
  • stdout redirection
    ... I am trying to redirect stdout to a RichEdit control, ... text from the StringBuilder is being copied. ... DLLs are using printf*.* to write to the stdout, ...
    (microsoft.public.dotnet.languages.csharp)
  • stdout redirection
    ... I am trying to redirect stdout to a RichEdit control, ... text from the StringBuilder is being copied. ... DLLs are using printf*.* to write to the stdout, ...
    (microsoft.public.dotnet.languages.vc)
  • Redirecting STDOUT under ActivePerl on Windows XP
    ... I want to redirect STDOUT to a file, and have the redirection apply to ... any programs that I invoke. ... print "outer calling middle\n"; ...
    (comp.lang.perl.misc)
  • Re: Why wont exec work?
    ... eval exec $cmd 2>@ stdout ... Now you're redirecting stderr directly to stdout and no window pops up, ... Is there any way I can redirect stdout and stderr it so that it can ...
    (comp.lang.tcl)