Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 55894 invoked from network); 10 Jul 2007 15:21:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2007 15:21:47 -0000 Received: (qmail 20689 invoked by uid 500); 10 Jul 2007 15:21:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 20665 invoked by uid 500); 10 Jul 2007 15:21:44 -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 20654 invoked by uid 99); 10 Jul 2007 15:21:44 -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 08:21:44 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of andrewgoktepe@gmail.com designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 08:21:41 -0700 Received: by an-out-0708.google.com with SMTP id b15so262596ana for ; Tue, 10 Jul 2007 08:21:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=V39PiQmja1p+p22yCd+FrDaCjCFSzqpjv3ig9cWXwzlWUu1cuRNWz5BvohWmhsclBVV5zYc7hf3KVjJsk4Nodyip0QpnmBEEM/+ba6ylfC6a9d9btewMkjdmRRfJ9Y0lOo4LmAent5ivNiBFbuDyhyy7cDxRCTvwSLP5tKtKnqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=MQFbyaNXAaS0WIF863Sws0wdEoCYjOcDfV5+HUVsSycS5M4qnl8VNYuWde+cOdRi6GW9bg18vI4D1JEyBmr/800hPimIHeFWgrIU+U+ZvlHs3eXjPDup1rxbl827s9WpO/RJN0idsZ0oN7/869qNDErU1gwYQKwVQ23i010lxTQ= Received: by 10.100.194.7 with SMTP id r7mr2245762anf.1184080880311; Tue, 10 Jul 2007 08:21:20 -0700 (PDT) Received: by 10.100.12.20 with HTTP; Tue, 10 Jul 2007 08:21:19 -0700 (PDT) Message-ID: <98c2b60d0707100821pff346ecs6b4f83a42991d2ee@mail.gmail.com> Date: Tue, 10 Jul 2007 10:21:19 -0500 From: "Andrew Goktepe" To: "Ant Users List" Subject: Re: Ant sshexec random failures In-Reply-To: <11521137.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46377_26790702.1184080879969" References: <8855696.post@talk.nabble.com> <10895879.post@talk.nabble.com> <6df22f8a0706010903v35307ff5o78c0a6cd7cc2c893@mail.gmail.com> <11521137.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_46377_26790702.1184080879969 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Regarding my earlier post, the upgrade from JSch 0.1.31 to 0.1.33 did not make any difference. It sounds like that Ant patch will help though. -Andrew On 7/10/07, ruel loehr wrote: > > > 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 > > ------=_Part_46377_26790702.1184080879969--