[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to supress echo in non-interactive sessions


Hello,

The echo is produced by the remote side (terminal) if you've asked for a pty. A side effect of requesting a pseudo terminal is that the other side believes you're an interactive process and so behaves this way.

If you're not using ssh_channel_request_pty, I don't see what could produce that behaviour...

Kr,

Aris

Le 25/01/12 17:32, Pablo Calabrese a écrit :
Hello,

I just started using libssh and is working great. However I'm stuck
with a problem of getting the echo of my commands which is why I'm
asking for help.

I'm using a non-interactive shell, so using cfmakeraw is not an option.
I don't understand if the echo is comming from the server and if
there's a way to avoid getting it when I do a ssh_channel_read. Can you
please indicate what is the way to supress this echo?

Thanks in advance

References:
How to supress echo in non-interactive sessionsPablo Calabrese <pablo.calabrese@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org