Hi,

I'm connecting to a remote machine using
org.apache.sshd.ClientSession.createChannel("shell");
I'm setting
  channel.setOut(outputListener);
  channel.setErr(errorListener);
to two distinct sinks.
Now, when I invoke an unexisting command on the other machine
directly, like this:
  pommes >std.out 2>err.out
I'll find that - as expected - std.out is empty and err.out contains
  -bash: pommes: command not found
while invoking this command (without output redirection) via sshd client,
I'll get the same error message via "out", none via "err".
With a debugger I could confirm that
  org.apache.sshd.client.channel.AbstractClientChannel.doWriteExtendedData()
never get's called.

What's it I'm doing wrong here?

Thanks,

  Bernd

Reply via email to