Open sowmyab opened 8 years ago
Is "standard input and output" refers to Java's System.{in,out,err} ? If so, this is not a bug: the System class always refers to the JVM's streams, and therefore, is Karaf's console.
When executing a remote command, input/output stream needs to be redirected to a private socket and not use the system in/out. This is similar to the unix shell redirection: $ cmd1 | cmd2 or $ cmd > somefile.
Did I understand the bug report correctly ?
To add up, in python:
print "This will print out onto the SSH session output" from java.lang import System System.out.println("This will print out onto the Karaf output")
Sowmya, I believe that you checked that this was not a bug. Could you please confirm so we can close it ? thanks.
This is likely a duplicate of issue netshell #14
All the standard system input and output statements get printed in the karaf console.
This is a problem mainly for python commands and especially when trying to send them as remote commands. (Netshell shell commands can print input/output in the netshell console.)