I'm not sure this ever worked.. an easy way to reproduce the issue is

ssh -v -p 8101 karaf@localhost 'x=0; while { %(x < 10) } { echo $x;sleep 2; %(x+=1) }'

with the ssh client receiving the output only when the while loop ends.


On 2022/09/10 05:48:36 Jean-Baptiste Onofré wrote:
> Hi Martin,
>
> Let me try to reproduce. Did it work with previous Karaf version ?
>
> Regards
> JB
>
> On Fri, Sep 9, 2022 at 10:04 PM Martin Lichtin via user
> <[email protected]> wrote:
> >
> > Using ssh to execute Karaf commands, there's buffering going on and one
> > cannot see a command output as it happens.
> > e.g.
> >
> > ssh -p 8101 karaf@localhost "ls; sleep 10"
> >
> > does not show the "ls" output, it's only flushed and visible after the
> > 10s sleep.
> >
> > For commands with large output (say 10k) one can see the buffering effect.
> >
> > Can this be changed somehow, to achieve instant output of a command?
> >
> >
>

Reply via email to