Eric Hodel
10/12/2007 4:18:00 AM
On Oct 11, 2007, at 19:40 , Fredrik wrote:
> I am using a compiled C-code in my Ruby program. The problem is that
> the C-code prints some messages that I don't want to show in my Ruby
> program. What would be the best way to get rid of these printouts?
>
> I don't want to get into the original C-code and take away the print
> commands since that is not my code. Are the printouts sent directly to
> standard output, meaning there is no way for Ruby to interfere?
You will need to reopen STDOUT to /dev/null
--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars