Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94065 invoked from network); 12 Oct 2007 07:27:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2007 07:27:17 -0000 Received: (qmail 13244 invoked by uid 500); 12 Oct 2007 07:27:02 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 13216 invoked by uid 500); 12 Oct 2007 07:27:02 -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 13205 invoked by uid 99); 12 Oct 2007 07:27:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 00:27:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 07:27:04 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id l9C7QgNv018238 for ; Fri, 12 Oct 2007 09:26:42 +0200 Received: from z011034.bk.fin.local ([130.11.7.34]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.1830); Fri, 12 Oct 2007 09:26:42 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Running task with an "interactive" executable Date: Fri, 12 Oct 2007 09:26:42 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Running task with an "interactive" executable Thread-Index: AcgLt/Bs3LLNz27YQ9Wk4l7hBlG6uAA6QEqw From: To: X-OriginalArrivalTime: 12 Oct 2007 07:26:42.0470 (UTC) FILETIME=[3C855C60:01C80CA1] X-Virus-Checked: Checked by ClamAV on apache.org The input attribut passes the string to the invoked executable. In your = case this is "cmd". But not your "cmd" needs the passwort, the batchfile does. The cleanest = way would be using a "-password" option of the batchfile (if it exist).=20 Otherwise I would try piping inside the cmd ... Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: terrance grahn [mailto:tjgrahn@gmail.com]=20 >Gesendet: Mittwoch, 10. Oktober 2007 19:30 >An: user@ant.apache.org >Betreff: Running task with an "interactive" executable > >I am trying to run an executable; however, I keep getting=20 >stumped on one >part. I am able to run the executable correctly, but there is=20 >a point in >this executable that prompts the user for a password (and then=20 >asks them to >confirm it again). I want to send this through the Ant task,=20 >but nothing I >use works. > >details: > > > > > addproperty=3D"instanceName"/> > > > failonerror=3D"true" executable=3D"cmd" os=3D"Windows XP"> > ${instanceName}"/> > > > > > > >So this reads the arg line well, but it always errors out=20 >because nothing is >entered for the password. Here is the output: > >Creating OC4J instance "instance1"... >Set OC4J administrator password for "instance1" (password text=20 >will not be >displayed as it is entered): >Error creating new OC4J instance: OC4J administrator's=20 >password is null. > > > >I Guess I need to know exactly how 'input' and 'inputstring'=20 >attributes can >be used with the exec task - I have not seen any examples=20 >anywhere that use >these attributes. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org