You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Hendy Irawan (JIRA)" <ji...@apache.org> on 2013/01/19 06:28:12 UTC

[jira] [Created] (KARAF-2131) Command output should be output immediately (not buffered) when using SSH client

Hendy Irawan created KARAF-2131:
-----------------------------------

             Summary: Command output should be output immediately (not buffered) when using SSH client
                 Key: KARAF-2131
                 URL: https://issues.apache.org/jira/browse/KARAF-2131
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 2.3.0
         Environment: $ uname -a
Linux * 3.2.13-grsec-xxxx-grs-ipv6-64 #1 SMP Thu Mar 29 09:48:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

            Reporter: Hendy Irawan


When running a long command directly on the shell, output is immediate.

However, when connecting using SSH (using Linux OpenSSH client), output seems to be buffered. So there's no output before command is completed or SSH connection is closed.

For example:

{code}
karaf_stg@luna2:~/karaf_template$ ssh -p 8122 karaf@localhost features:install -v -c soluvas-framework
..................... <-- looong time of silence here, then:
Installing feature soluvas-framework 2.0.0-SNAPSHOT
Installing feature soluvas-deps 2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.mongo/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.commons/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.json/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.async/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.cdi/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.data/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.push/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.jaxrs/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.security/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.facebook/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.ldap/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.image/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.social/2.0.0-SNAPSHOT
Installing bundle mvn:org.soluvas/org.soluvas.social.shell/2.0.0-SNAPSHOT
^^^^^ these lines are outputted all at once, after the command finishes, then the SSH connection is closed
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira