[rrd-developers] Re: BUG: attempt to put segment in horiz list twice ??

Ruud H.G. van Tol rvtol at isolution.nl
Wed Jul 27 14:21:02 MEST 2005


Per Jessen:
> Ruud H.G. van Tol:
>> Per:

>>> As the problem was that the PNG ended up being invalid
>>> because of the stderr warnings from libart, I figured I would just
>>> close stderr before I do the system() call.
>>
>> Why not just redirect stderr to a different handle?
>> What programming language do you use?
>
> I use C - and yes, I did try redirecting stderr to a different handle.

OK, but then I don't understand how the stderr-data could get mixed with
the PNG-data. Or did I understand that wrong?
Does libart maybe send error messages to stdout too?

In PHP, this is handy: ob_start(); passthru("command"); $var =
ob_get_contents(); ob_end_flush(); ob_end_clean().

In a system() call, you can append " 2>$tmpfile" to the commandline.

(my apologies for stating the/your obvious)

-- 
Grtz, Ruud

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-developers
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-developers mailing list