esnet / netshell

Kernel and companion software that support ENOS applications (NOT ACTIVELY MAINTAINED)
Other
6 stars 1 forks source link

Netshell input/output gets redirected to karaf console #12

Open sowmyab opened 8 years ago

sowmyab commented 8 years ago

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.)

lomaxfrog commented 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 ?

lomaxfrog commented 8 years ago

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")

lomaxfrog commented 8 years ago

Sowmya, I believe that you checked that this was not a bug. Could you please confirm so we can close it ? thanks.

lomaxfrog commented 8 years ago

This is likely a duplicate of issue netshell #14