Where does the "prompt come from"

Damien Miller djm at mindrot.org
Thu Mar 25 19:10:46 EST 2004


Niclas Bäckman C (LI/EAB) wrote:
> Hi Damien !
> Thanks for your feedback !
> We have implemented a secure command line interface api that wants to perform "normal" shell
> operations, but from an application. 
> That's why I don't want to add a new subsystem.
> I just want to run for instance scripts, towards a secured remote host. But the data that is passed
> to the socket doesn't include the prompt itself, like '>'. The socket is a redirekt from the client's
> stdout/stderr.
> If I use a standard client like OpenSSH the client echoes back the prompt after a command is executed,
> but in my scenarion it's lost and never written to stdout/stderr(my socket).
> Does the SSH client remove the prompt in some way before data is passed to stdout/stderr ??
> Many thanks in advance !

No, neither the client nor the server modify the data from a user's shell.

If you are doing the equivalent of "ssh somehost command" then there
will never be a prompt displayed.




More information about the openssh-unix-dev mailing list