Re: [Hampshire] unwanted buffering of ssh output when piping…

Top Page

Reply to this message
Author: Graham Bleach
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] unwanted buffering of ssh output when piping into awk
On 10/04/2008, Victor Churchill <victorchurchill@???> wrote:
> ssh someServer "tail -f blah_log" | awk '{doSomeStuff}' ==>
> somewhere in ssh, or in my bash or awk, data is buffered and only
> appears on my terminal after it reaches 4K characters.


Try the option to tell awk not to buffer input. It's -W interactive on
my version.

Failing that, check that ssh compression is off or try ssh -o Compression=no

Regards,
Graham