POV-Ray : Newsgroups : povray.general : How do you stop all the messages? : Re: How do you stop all the messages? Server Time
1 Aug 2024 16:25:54 EDT (-0400)
  Re: How do you stop all the messages?  
From: Mike C
Date: 5 Aug 2005 14:25:01
Message: <web.42f3ad83aa9da30774955de20@news.povray.org>
Christoph Hormann <chr### [at] gmxde> wrote:
> apchar wrote:
> >
> > Thank you. That worked. I dont know why they route information like the list
> > of authors to stderr.
> >
>
> Because the image goes to stdout if the output file name is '-'.
>
> >
> > Is there any way to prevent all the aforementioned messages but keep the
> > line that displays the progress of the trace:
> >   0:11:02 Rendering line 107 of 480, 44093 supersamples
>
> Just filter the text stream, for example using grep:
>
> grep -E "^[ ]*[0-9]+:[0-9]+:[0-9]+"

How do you grep stderr?  I think the following do it...

povray [options] 3>&1 1>&2 2>&3 | grep -E "^[ ]*[0-9]+:[0-9]+:[0-9]+" 2>
stdout-data
(assuming you still want to preserve the image sent out via stdout, which
will be saved in "stdout-data" )
povray [options] 2>&1 | grep -E "^[ ]*[0-9]+:[0-9]+:[0-9]+"
(alternate: heck with stdout; it shouldn't contain anything)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.