You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ruel loehr <rl...@pointserve.com> on 2007/07/10 15:41:32 UTC

Re: Ant sshexec random failures

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 <kg...@cmtek.com>:
>> 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


Re: Ant sshexec random failures

Posted by Andrew Goktepe <an...@gmail.com>.
I posted bug 43092 for this issue:

http://issues.apache.org/bugzilla/show_bug.cgi?id=43092

-Andrew

On 7/10/07, Kevin Jackson <fo...@gmail.com> wrote:
>
> Hi,
>
> Has anyone posted a bug on BZ for this?
>
> If we have an open bug report and a patch & test for it, we can
> perform the fix and get it into the trunk of ant for 1.7.1
>
> Thanks,
> Kev
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: Ant sshexec random failures

Posted by Kevin Jackson <fo...@gmail.com>.
Hi,

Has anyone posted a bug on BZ for this?

If we have an open bug report and a patch & test for it, we can
perform the fix and get it into the trunk of ant for 1.7.1

Thanks,
Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Ant sshexec random failures

Posted by Andrew Goktepe <an...@gmail.com>.
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 <rl...@pointserve.com> 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 <kg...@cmtek.com>:
> >> 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
>
>