[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Pipe Tricks

From: cswiger
Subject: Re: [Discuss-gnuradio] Pipe Tricks
Date: Wed, 6 Apr 2005 11:26:43 -0400 (EDT)

On Wed, 6 Apr 2005, cswiger wrote:

> Trying
>   pipe_fd = open("/pipe","r")
>   gr.file_descriptor_source(gr.sizeof_char,pipe_fd.fileno())
> starts out but as soon as I start the source to fill the pipe
> I get:
>   file_descriptor_source[read]: Bad file descriptor

Ok, turns out you have to use

  import os
  source_fd = os.open("/pipe", os.O_RDONLY)
  src = gr.file_descriptor_source(gr.sizeof_char,source_fd)

low level io.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]