You have 3 ways to use a client channel now: * direct : using setIn(), setOut() and setErr() before opening the channel
https://github.com/apache/mina-sshd/blob/master/sshd-core/src/test/java/org/apache/sshd/ClientTest.java#L282 * inverted: using getInvertedIn(), getInvertedOut() and getInvertedErr() after the channel has been opened https://github.com/apache/mina-sshd/blob/master/sshd-core/src/test/java/org/apache/sshd/PortForwardingTest.java#L273 You can actually mix both direct and inverted, as it's a per stream case: https://github.com/apache/mina-sshd/blob/master/sshd-core/src/test/java/org/apache/sshd/ClientTest.java#L321 * async: it's a bit more complicated, but gives you asynchronous streams https://github.com/apache/mina-sshd/blob/master/sshd-core/src/test/java/org/apache/sshd/ClientTest.java#L172 2014-09-25 11:35 GMT+02:00 Sapna Bhargava <[email protected]>: > Hi All, > > > Im using the Apache sshd-core ChannellExec API to execute command on a > SSHClient. I need some documentation on how to set /read the input, output > and error streams. > > Both the links below give me a 404 error : > > http://mina.apache.org/sshd-project/apidocs/org/apache/sshd/client/channel/class-use/ChannelExec.html > > http://mina.apache.org/sshd-project/apidocs/index.html?org/apache/sshd/client/channel/ChannelExec.html > > Any help would be appreciated. > > Thanks, > Sapna >
