Zsh Mailing List Archive
Messages sorted by:
Re: Problem with redirecting from serial device
- X-seq: zsh-users 17885
- From: Ian Petts <ipetts@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Problem with redirecting from serial device
- Date: Fri, 19 Jul 2013 17:34:34 +1000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=1Z9QF78whuZwdFXM8wFqGlWdd3gITzmJV02XwfT5734=; b=KMylV2vW6A/CuECqXITGZaf76a01wdxBw5F8LJu/olKQy77QJXKjj6nGI2IF8eXJbx +6ImDstGQ7qmukXm9tHob7SPbMVZOotiVpeP0za378BVo49BdXlHc3ZzJ2VM0y54pqY4 KMcOR3AZArQ+5zHM+Ld8wDnv+EwGeYkmKGUfGmiA45B1ykh0sEo14z5tbXuGvUMtYbLJ zI/HR3oAKqYBpx7JkjvGmLht+JNU5Sq6o6y3I495NwikX3DWy9jiBBiSNklnZKYnOHjF FnqlVIZz2LofoJ7DOIXE3kNbY+W05sohpo0RjicXdXHc3AXnEdHxPDJh6nW8BNAXm02T DmAw==
- In-reply-to: <20130718221150.GA5334@redoubt.spodhuis.org>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20130718055932.GA9525@kvm1.pettsie.net> <20130718221150.GA5334@redoubt.spodhuis.org>
> > 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?
Thanks for the info, Phil. My awk is indeed gawk and I also tried the stdbuf
command per the link you supplied. Unfortunately I am still seeing the same
It is starting to look like a buffering problem, however, because using perl
with output buffering on (the default), does not appear to work
< /dev/ttyACM0 perl -MPOSIX -e '$| = 0;' -pe 'print strftime("%F %T ", localtime)' > weather.out
Turn output buffering off, data is written to the weather.out file
< /dev/ttyACM0 perl -MPOSIX -e '$| = 1;' -pe 'print strftime("%F %T ", localtime)' > weather.out
Either case above without the redirect displays the data to the screen.
Who is General Failure and why is he reading my disk?
Messages sorted by: