When I open an exec channel, all input I get from channel inputstream is of the actual output of the command,
but when I open a shell channel, I get in the inputstream everything including the command I execute, the prompt itself etc.
Is there a way to only get the output of the command in shell channel like in exec?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I open an exec channel, all input I get from channel inputstream is of the actual output of the command,
but when I open a shell channel, I get in the inputstream everything including the command I execute, the prompt itself etc.
Is there a way to only get the output of the command in shell channel like in exec?