jsch supports error streams and capturing the result code. Please add functionality into the SSHExec task. error The file to which the standard error of the command should be redirected. errorproperty The name of a property in which the standard error of the command should be stored. resultproperty The name of a property in which the return code of the command should be stored
Created attachment 30439 [details] adding missing features
Just uploaded a patch for https://issues.apache.org/bugzilla/show_bug.cgi?id=48478, which provides the following enhancements : + errorProperty + errorFile + appenderr + suppressSystemErr + resultProperty Regards, Gilbert Rebhan
patch applied with svn revision 1555866 - thanks
Gilbert, I think I spotted a bug in your patch, see svn revision 1555873 Could you please have a look?
(In reply to Stefan Bodewig from comment #4) > Gilbert, I think I spotted a bug in your patch, see svn revision 1555873 > > Could you please have a look? Thanks for the hint Stefan, you're right of course ! A dumb copy & paste error ;-)