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

Page principale

Répondre à ce message
Auteur: Graham Bleach
Date:  
À: Hampshire LUG Discussion List
Sujet: 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