From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: zsh-users@zsh.org
Subject: Re: Problem with redirecting from serial device
Date: Thu, 18 Jul 2013 18:11:50 -0400 [thread overview]
Message-ID: <20130718221150.GA5334@redoubt.spodhuis.org> (raw)
In-Reply-To: <20130718055932.GA9525@kvm1.pettsie.net>
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
next prev parent reply other threads:[~2013-07-18 22:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-18 5:59 Ian Petts
2013-07-18 22:11 ` Phil Pennock [this message]
2013-07-19 7:34 ` Ian Petts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130718221150.GA5334@redoubt.spodhuis.org \
--to=zsh-workers+phil.pennock@spodhuis.org \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).