commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Brico" <pierre.br...@tsdsoftware.eu>
Subject Re: [Telnet] how to determine the prompt?
Date Tue, 03 Jun 2008 09:01:34 GMT
Hello Uwe,

Did you try to change the command prompt before executing the command. You
just should send commands to the shell like this:

PS1="#>"
export PS1

And you will get the "#>" as prompt.

Pierre

On Tue, Jun 3, 2008 at 10:50 AM, Uwe Fischer <mistuwefischer@web.de> wrote:

> Hello all,
>
> I'm looking for a solution to a problem that bothers me for quite some time
> now and I hope somebody here can help me out.
> I'm using the telnet api to connect to various systems, which works fine.
> The problem I face is, how can I determine that a command has run to its
> end if there is no static "prompt" character like "#" or ">", but
> dynamically changing prompt characters?
>
> I have read through the Telnet specification but couldn't find anything
> that deals with this kind of problem. But surely there must be a solution to
> this. I have found another thread in this mailing list concerning a similar
> issue, posted by: Anthony Webster Thu, 28 Feb 2008 10:54:35 GMT.
> Unfortunately none has answered it yet.
>
> Thanking in advance,
> U.F.
>
>
> ______________________________________________________________
> Jeden Monat 1 hochkarätiger maxdome-Blockbuster GRATIS!
> Exklusiv für alle WEB.DE Nutzer. http://www.blockbuster.web.de
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message