Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with redirecting from serial device
- X-seq: zsh-users 17884
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Problem with redirecting from serial device
- Date: Thu, 18 Jul 2013 18:11:50 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201210; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=Ks3U8fdhkrOM5mAMySdcEA4Lg8NjZ0gKv6vHhpYZBr4=; b=fkBAqojuHGAkidqlREz0XJXdbhJjIuHdJ53HW7XTmB2wCGVFcWZdVuPVqMWFQ3ewhBpT1C6SjONzF9+CTG1PtZcnngNDyHUpfaim/66ABF/bY1NUAXfSoHp00c1NxKpam4H4JzOLmPtbBqBT3n6+gmGehcGQW1XLAbI/vrL9Dck=;
- In-reply-to: <20130718055932.GA9525@kvm1.pettsie.net>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author