jdiazbb / rfxcmd

Automatically exported from code.google.com/p/rfxcmd
1 stars 0 forks source link

rfxcmd impossible to pipe to another script #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
$ ./rfxcmd.py -d /dev/rfxcom -c | while read line; do echo $line; done;

What is the expected output? What do you see instead?
each csv line should be echoed to the output
nothing echoed

What version of the product are you using? On what operating system?
0.23

Please provide any additional information below.

You should put a "sys.stdout.flush()" somewhere after each print

Original issue reported on code.google.com by marc.lan...@gmail.com on 4 Mar 2013 at 3:40

GoogleCodeExporter commented 8 years ago
Apparently you already placed a "sys.stdout.flush()" but only at shutdown().
This means that the output is only available for other piped scripts/commands 
at shutdown. It's useless if rfxcmd is run as a deamon, I think. That's why you 
should better place a flush after each stdout print.

Thx in advance

Original comment by marc.lan...@gmail.com on 5 Mar 2013 at 11:00

GoogleCodeExporter commented 8 years ago
Thank you, I will fix this issue.

Original comment by sebastia...@gmail.com on 9 Mar 2013 at 10:55

GoogleCodeExporter commented 8 years ago

Original comment by sebastia...@gmail.com on 17 Mar 2013 at 9:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Fixed in 0.24

Original comment by sebastia...@gmail.com on 17 Mar 2013 at 9:06