?ukasz Bie?czyk wrote:> hello everyone
>
> I'm writing an application which execute ssh, I communicate with
> a ssh process by stdin/stdout. Everything works fine, but lately I've
noticed
> that I need TTY(for changing a password), so I use "-tt" option
to force tty
> allocation, and now on stdout I get messages with all commands which I
write.
> I mean:
> write(stdin): ls
> read(stdout): ls
> read(stdout): "ls result"
>
> Is there a way to avoid that?
>
> Regards,
> lukasz
Seems that you made your shell interactive.
I don't see a parameter to make a shell connected to ttys
non-interactive, but
perhaps running 'stty -echo' is enough for your issue.