Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 83346 invoked from network); 13 Sep 2006 23:24:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 23:24:45 -0000 Received: (qmail 7391 invoked by uid 500); 13 Sep 2006 23:24:42 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 7134 invoked by uid 500); 13 Sep 2006 23:24:40 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 7123 invoked by uid 99); 13 Sep 2006 23:24:40 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 16:24:40 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=antoine@gmx.de; spf=pass X-ASF-Spam-Status: No, hits=0.1 required=5.0 tests=FORGED_RCVD_HELO,X_PRIORITY_HIGH Received-SPF: pass (idunn.apache.osuosl.org: domain gmx.de designates 213.165.64.20 as permitted sender) Received: from ([213.165.64.20:50308] helo=mail.gmx.net) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 8E/F3-00682-9E298054 for ; Wed, 13 Sep 2006 16:24:36 -0700 Received: (qmail 3048 invoked by uid 0); 13 Sep 2006 23:23:18 -0000 Received: from 66.28.87.10 by www032.gmx.net with HTTP; Thu, 14 Sep 2006 01:23:18 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Thu, 14 Sep 2006 01:23:18 +0200 From: "Antoine Levy-Lambert" In-Reply-To: <578CE6AACA6B9946862847136A2CBC830239ACF6@VHEXCHANGE.corp.cdw.com> Message-ID: <20060913232318.46550@gmx.net> MIME-Version: 1.0 References: <578CE6AACA6B9946862847136A2CBC830239ACF6@VHEXCHANGE.corp.cdw.com> Subject: Re: Telnet to AS400 To: "Ant Users List" X-Authenticated: #22961642 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 1 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I advise against using telnet, it is not practical to automate deployments. Using ssh instead of telnet would be the first step I would recommend you. A quick search in Google tells me that there are ssh servers implementations for AS400. In a second step, to automate WebSphere deployments, the best is to use the JMX APIs of WebSphere. Smartfrog is a tool that you might want to consider to orchestrate your deployments. Steve Loughran can tell you more about it. Regards, Antoine -------- Original-Nachricht -------- Datum: Wed, 13 Sep 2006 17:55:54 -0500 Von: "Ben Corpus" An: user@ant.apache.org Betreff: Telnet to AS400 > Hi All, > > > > I am using Apache Ant 1.6.5. I want to use its Telnet task to automate > Java deployments to WAS (Websphere Application Server) server running on > the AS400. The problem I encounter is in the nested tag (line 6) > - it hangs on that line of execution. > > > > Here's the target code: > > > > 1 > > 2 > > 3 > > 4 > > 5 userid="${telnet.userid}" password="${telnet.password}"> > > 6 > > 7 wsadmin > > 8 > > 9 set appman [$AdminControl > queryNames type=ApplicationManager,process=server1,*] > > > 10 > > > 11 $AdminControl invoke $appman > stopApplication {"${app.name}"} > > 12 > > 13 exit > > 14 > > 15 exit > > 16 > > 17 > > > > I have checked my dependencies and they are alright: > > - commons-net-1.4.1 > > - jakarta-oro-2.0.1 > > > > I have checked my classpath > > > > I have tried these other return characters: > > - ">" > - " " > - "" (this stops the hanging, but the remaining lines > of code never execute) > > > > I anyone out there has experienced a similar problem and overcome it, > please advise. > > > > Thanks, > > Ben > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org