Where does the "prompt come from"
Niclas Bäckman C (LI/EAB)
niclas.c.backman at ericsson.com
Thu Mar 25 01:05:38 EST 2004
Hi All !
I have a little question about the shell that is run when establishing a
connection towards an SSH server.
The client(OpenSSH) displays a prompt(as usual) when a command is executed,
but my question is, where does the prompt come from.
Is it sent by the remote shell or is it handled in the client ??
The reason I ask is that we have developed a product that redirects
stdin/stdout/stderr from the ssh binary to a socket, and we then
perform socket read/writes directly into the ssh tunnel. But when i perform
a command, the prompt is never read up from the server.
So it's difficult to know when a remote script is finished. Using the same
solution but towards a telnet server always results in a prompt
back to the client.
I would be most greatful for any good ideas/hints in this case.
Thanks in advance !!
e
Niclas Bäckman
Software Design | OMSec - team SSH
Ericsson AB
Center for Radio Network Control
Box 1248
581 12 Linköping
Sweden
New e-mail address:
> * E-mail: : Niclas.c.Backman at ericsson.com
Please Update your address book.
> * Phone : +46 13 287604
> * Mobile : +46 73 0435819
>
>
This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.
E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.
More information about the openssh-unix-dev
mailing list