Ah sorry, forgot the important part: If you have opened a file from
python, let's say by:

myfile = open("/home/ruecan/secretplanforworlddominance.pdf", "r")

you can get the file descriptor by doing
fd = myfile.fileno()

Greetings,
Marcus

On 30.05.2014 17:50, Marcus Müller wrote:
> Hi Ruecan,
>
> if you're asking this question, you probably shouldn't use
> file_descriptor_sink.
> It works quite like file_sink, but instead of a filename, you pass a
> file descriptor, which is the int handler the open() syscall will return.
>
> Greetings,
> Marcus
>
> On 30.05.2014 17:19, Ruecan wrote:
>> Hello GR,
>>
>> Can anyone please give me some hints on how to use gr-file descriptor sink
>> in a gnuradio python flowgraph.  
>>
>> Regards,
>> Ruecan
>>
>>
>>
>> --
>> View this message in context: 
>> http://gnuradio.4.n7.nabble.com/Using-file-descriptor-sink-tp48640.html
>> Sent from the GnuRadio mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to