Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42597 invoked from network); 6 Mar 2006 04:31:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Mar 2006 04:31:17 -0000 Received: (qmail 97556 invoked by uid 500); 6 Mar 2006 04:31:59 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 97512 invoked by uid 500); 6 Mar 2006 04:31:59 -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 97501 invoked by uid 99); 6 Mar 2006 04:31:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Mar 2006 20:31:59 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of andrewgoktepe@gmail.com designates 64.233.184.201 as permitted sender) Received: from [64.233.184.201] (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Mar 2006 20:31:58 -0800 Received: by wproxy.gmail.com with SMTP id 58so1315766wri for ; Sun, 05 Mar 2006 20:31:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=C3xw2zIf375W4r4ljrTENsMwtm3Tb/H8AiCu7gf8fnMDK4tanSZ7SvdYa5OnrhhDvt/H/2vVMR/jo6yYa1q24ZnB9ImngWNaQ23Uf/eCOV53rZf2rx5hefqFK8rsq/XFcEYqXW4NKLa31QykIk8eDoupp/je8zoXUi6m1ZGK+2Q= Received: by 10.54.156.14 with SMTP id d14mr4339466wre; Sun, 05 Mar 2006 20:31:37 -0800 (PST) Received: by 10.54.124.17 with HTTP; Sun, 5 Mar 2006 20:31:37 -0800 (PST) Message-ID: <98c2b60d0603052031q730ed914s60f197494785d571@mail.gmail.com> Date: Sun, 5 Mar 2006 22:31:37 -0600 From: "Andrew Goktepe" To: "Ant Users List" Subject: Re: Looking for an Ant Task In-Reply-To: <440B8AEC.2000301@adobe.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9013_397397.1141619497538" References: <440B70A1.4090404@adobe.com> <00ba01c640ae$0e174110$0d02a8c0@athlon> <440B8AEC.2000301@adobe.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_9013_397397.1141619497538 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You might be able to generate a file and use the 'input' attribute of , with each command on a separate line in the input file. This does not allow you to parse any output or wait for results, but if the program isn't reading from STDIN each time until its next prompt, this should work. -Andrew On 3/5/06, Shay Thompson wrote: > > > :) sorry, wasn't trying to be confusing. > > The program I'm using is the WebLogic console program called WLST. It's > basically a shell program for WebLogic which allows you to do things > like deploy and undeploy applications. An example use is to start the > program, log in, enter edit mode, deploy an application, save and then > exit. After each command I need to parse the output to verify the step > was successful before writing the next command. > > Using Telnet to connect to a remote machine, or the local one for that > matter, allows me to do this because the Telnet task allows for multiple > read/writes in a single runtime where the task only allows for 1 > write and the 1 read which is the end result. > > This script is used for testing on multiple machines, some of which it > will be run on locally, and I'd prefer not to have to tell everyone that > uses it that they have to turn on a telnet server just to run it > locally. For now, Windows is the only OS I'm concerned about. We are > using Ant 1.6.3 and some version of the contrib library. > > Thanks, > Shay > > Rhino wrote: > > I've just reread your question for the third time and I still don't > > think I get it. It sounds to me like you are "talking around" the > > problem, not describing the actual problem. > > > > What exactly are you trying to do? You're talking about needing > > "multiple reads and writes" but I haven't a clue WHAT you are trying > > to read or write. > > > > What specific command-line program are you trying to use here? Why > > does your solution for remote machines not work for local machines? > > > > And what's wrong with the telnet solution you describe if it gets the > > job done? Is it just not elegant enough? It's perfectly valid to find > > a more elegant solution if the one you have is clunky; I'm just trying > > to figure out if the existing solution works at all or if you in big > > trouble because you can't get something to work at all, even badly. > > > > What operating system are you on and which Ant version are you using? > > That can make a difference to the answer sometimes. > > > > -- > > Rhino > > > > ----- Original Message ----- From: "Shay Thompson" > > To: > > Sent: Sunday, March 05, 2006 6:13 PM > > Subject: Looking for an Ant Task > > > > > >> > >> I'm trying to find an Ant task that will let me work with a > command-line > >> program with multiple read/writes. > >> > >> The problem I've run into is how to communicate with this program > >> locally. For remote servers, I can use the Ant task to telne= t > >> to the remote machine, start up the and send the commands. Locally, > >> there's no Ant task that I know of which can do *multiple *reads and > >> writes to a program/shell/console. > >> > >> The only solution I've found so far is to actually telnet into the > local > >> machine, which allows me to use the Ant task. > >> > >> An example of what I mean: > >> > >> myprompt: > >> dosomething > >> Response from dosomething > >> dosomething2 > >> Response from dosomething2 > >> > >> Thanks, > >> Shay > >> > >> > >> -- > >> > >> ... hey, it works on my machine. > >> > >> Shay Thompson - Lead Computer Scientist > >> Adobe Systems, Inc. - Titan Core QE > >> Voice: x34728 or 612.251.5415 > >> > >> > > > > > > > -------------------------------------------------------------------------= ------- > > > > > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: > 03/03/2006 > > > > > > > > -- > > ... hey, it works on my machine. > > Shay Thompson - Lead Computer Scientist > Adobe Systems, Inc. - Titan Core QE > Voice: x34728 or 612.251.5415 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_9013_397397.1141619497538--