Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Problem with redirecting from serial device



On 2013-07-18 at 15:59 +1000, Ian Petts wrote:
> As soon as I add a redirect or pipe to the above (to save the data to a file
> or for further processing) no data appears:

> I don't think it's a file buffering issue, I've left it go for several hours
> with the same results. Even if I try 'more'ing the data I seem to get no
> output.

To rule it out, could you try gawk explicitly if awk is not gawk?

  http://www.perkin.org.uk/posts/how-to-fix-stdio-buffering.html

I hadn't heard of stdbuf before, but like the idea, using an LD_PRELOAD
hack to be able to fix what is a userland problem.

-Phil



Messages sorted by: Reverse Date, Date, Thread, Author