Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 10261 invoked from network); 10 Jul 2007 13:41:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2007 13:41:58 -0000 Received: (qmail 97415 invoked by uid 500); 10 Jul 2007 13:41:55 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 97384 invoked by uid 500); 10 Jul 2007 13:41:55 -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 97373 invoked by uid 99); 10 Jul 2007 13:41:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 06:41:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 06:41:52 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I8Fy8-0007LQ-18 for user@ant.apache.org; Tue, 10 Jul 2007 06:41:32 -0700 Message-ID: <11521137.post@talk.nabble.com> Date: Tue, 10 Jul 2007 06:41:32 -0700 (PDT) From: ruel loehr To: user@ant.apache.org Subject: Re: Ant sshexec random failures In-Reply-To: <6df22f8a0706010903v35307ff5o78c0a6cd7cc2c893@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: rloehr@pointserve.com References: <8855696.post@talk.nabble.com> <10895879.post@talk.nabble.com> <6df22f8a0706010903v35307ff5o78c0a6cd7cc2c893@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I am facing this problem also. Has a bug been opened up for this? I'm unable to find it in bugzilla.... Atsuhiko Yamanaka-2 wrote: > > Hi, > > 2007/6/1, ken77 : >> I am having the same exactly problem with the sshexec, the same script >> sometimes works, sometimes it gives me "Remote command failed with exit >> status -1" , I was wondering if you have found the reason for this and a >> possible solution ? > > May I ask you to try the attached patch? It is a patch for SVN HEAD. > > diff -Naur > ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java > ant.new/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java > --- ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java > 2007-06-01 10:29:07.000000000 +0000 > +++ > ant.new/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java > 2007-06-01 15:54:56.000000000 +0000 > @@ -186,7 +186,7 @@ > thread = > new Thread() { > public void run() { > - while (!channel.isEOF()) { > + while (!channel.isClosed()) { > if (thread == null) { > return; > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > -- View this message in context: http://www.nabble.com/Ant-sshexec-random-failures-tf3190085.html#a11521137 Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org