[haiku-development] Re: input_server filter - stdout?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 12 Dec 2007 16:38:51 +0100

On 2007-12-12 at 16:16:35 [+0100], Joey Mink <joeymink@xxxxxxxxx> wrote:
> Hi,
> 
> I'm playing around with input_server filters.  I'm mostly trying to
> learn what the keyboard and mouse BMessages would look like.
> 
> Anyway, I was hoping to use BMessage::PrintToStream(), which logs the
> message info to stdout, but I'm unsure of a way to capture the
> input_server's stdout.

The easiest way is to redirect the output of the Bootscript 
(/boot/beos/system/boot/), i.e. replace

        exec >/dev/null 2>&1

by

        exec >/var/log/bootscript.log 2>&1

CU, Ingo

PS: For general programming related topics there are more appropriate list, 
like bedevtalk and becodetalk.

Other related posts: