Anonymous - 2010-03-24

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?