From user-return-57705-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue Aug 22 01:06:07 2006 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 59692 invoked from network); 22 Aug 2006 01:06:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2006 01:06:07 -0000 Received: (qmail 57930 invoked by uid 500); 22 Aug 2006 01:06:03 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 57884 invoked by uid 500); 22 Aug 2006 01:06: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 57873 invoked by uid 99); 22 Aug 2006 01:06:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Aug 2006 18:06: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 (asf.osuosl.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 21 Aug 2006 18:06:02 -0700 Received: (qmail invoked by alias); 22 Aug 2006 01:05:40 -0000 Received: from 207-237-61-56.c3-0.nyr-ubr2.nyr.ny.cable.rcn.com (EHLO [192.168.11.4]) [207.237.61.56] by mail.gmx.net (mp018) with SMTP; 22 Aug 2006 03:05:40 +0200 X-Authenticated: #22961642 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <44E2F503.8000707@falcom.de> References: <44E2F503.8000707@falcom.de> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4515DF52-F092-4297-B8A2-B93526D6AA13@gmx.de> Content-Transfer-Encoding: 7bit From: Antoine Levy-Lambert Subject: Re: ant, rsync and ssh passphrase Date: Tue, 22 Aug 2006 04:05:21 +0300 To: "Ant Users List" X-Mailer: Apple Mail (2.752.2) X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, if the implementation of rsync asks for the passphrase on the console and not from stdin (programs like su or login do this for their query of password) there is no way you can give the passphrase when starting rsync using the ant task exec. interacts with executables the same way as a shell script. Shell languages cannot either feed the console, only stdin. So the solution would be to rewrite rsync in java. A lot of work probably. Regards, Antoine On Aug 16, 2006, at 1:35 PM, Michael Bauroth wrote: > Hi, > > does there exist an option to use rsync with ssh + password/passphrase >> from within ANT too? If so, how can I call it? > > Any help would be great. > > Regards > Michael > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org