Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 83664 invoked from network); 3 Jun 2008 09:11:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 09:11:30 -0000 Received: (qmail 86105 invoked by uid 500); 3 Jun 2008 09:11:30 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 86044 invoked by uid 500); 3 Jun 2008 09:11:30 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 86033 invoked by uid 99); 3 Jun 2008 09:11:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 02:11:30 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pierre.brico@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 09:10:41 +0000 Received: by an-out-0708.google.com with SMTP id d18so433145and.72 for ; Tue, 03 Jun 2008 02:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=hpBD4mc2+aU1AtRlPMtjY45XSVMQpJ4EFxj8xMrLSrM=; b=X+CCa/BwgLWsZI6skckFi8oozBdjZyQVcwL0afLe4HZlGYy84h1OKfD6gZDB+8j+55/slRwAGR1XJZREP+2HjpK5QR6bjv7obEnWY7Bj0fOkUhUaLSVLcT+b1SCQEb/rewyoX/UCI68isxQpOvLfecjWHAixRAXr2c6qieoRZOI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Hcr313on1Q4Hf3QgSApD6tHNHWTT2mt7Se2JiJu3/OZoJA1RpeMkYpyjAHcgYDWAQbJGfw2XbNtfeB61ssasXMPrOSqtLpUtJJ1tN3fXecL5AjDOiiy3CMHgmeV4CM9jU+IPkbyrwHsbYIebksExEZROtL/JurbRHvEssLqRxLQ= Received: by 10.100.172.16 with SMTP id u16mr17106345ane.9.1212484257338; Tue, 03 Jun 2008 02:10:57 -0700 (PDT) Received: by 10.100.123.14 with HTTP; Tue, 3 Jun 2008 02:10:57 -0700 (PDT) Message-ID: Date: Tue, 3 Jun 2008 11:10:57 +0200 From: "Pierre Brico" Sender: pierre.brico@gmail.com To: "Commons Users List" Subject: Re: [Telnet] how to determine the prompt? In-Reply-To: <1297021666@web.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_674_2209817.1212484257331" References: <1297021666@web.de> X-Google-Sender-Auth: 25cb0094e0e007b4 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_674_2209817.1212484257331 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D"#>" export PS1 And you will get the "#>" as prompt. Pierre On Tue, Jun 3, 2008 at 10:50 AM, Uwe Fischer wrote: > Hello all, > > I'm looking for a solution to a problem that bothers me for quite some ti= me > 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 simil= ar > 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=E4tiger maxdome-Blockbuster GRATIS! > Exklusiv f=FCr 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 > > ------=_Part_674_2209817.1212484257331--