When using the sshexec task to run remote commands, I sometimes get the following error message: Remote command failed with exit status -1 Running the command manually through an ssh connection yields no error and an exit status of 0. Several other people have run into the same issue in this thread: http://www.mail-archive.com/user@ant.apache.org/msg28578.html There is a proposed patch included in the email thread that fixed the problem for some people. Hopefully we can get it into a future Ant release. For now I have to set failonerror=false in all of our sshexec calls. When there is a real error our scripts won't be able to detect it and handle it gracefully.
Can you attach the patch to the report?
Created attachment 20647 [details] Patch to sshexec task submitted to mailing list by Atsuhiko Yamanaka
I've tested the patch on SVN HEAD and no problems occurred, committing changes so should be available in next release (nightly builds etc)
*** Bug 43234 has been marked as a duplicate of this bug. ***