From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27350 invoked by alias); 18 Jul 2013 22:30:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17884 Received: (qmail 16829 invoked from network); 18 Jul 2013 22:29:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at spodhuis.org does not designate permitted sender hosts) 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=; Date: Thu, 18 Jul 2013 18:11:50 -0400 From: Phil Pennock To: zsh-users@zsh.org Subject: Re: Problem with redirecting from serial device Message-ID: <20130718221150.GA5334@redoubt.spodhuis.org> Mail-Followup-To: zsh-users@zsh.org References: <20130718055932.GA9525@kvm1.pettsie.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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