You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2013/07/11 09:29:49 UTC

[jira] [Resolved] (KARAF-2378) Shell:exec doesn't show output for commands that execute too quickly

     [ https://issues.apache.org/jira/browse/KARAF-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved KARAF-2378.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.4.0
                   2.3.3
    
> Shell:exec doesn't show output for commands that execute too quickly
> --------------------------------------------------------------------
>
>                 Key: KARAF-2378
>                 URL: https://issues.apache.org/jira/browse/KARAF-2378
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0.RC1
>         Environment: Ubuntu 13.04, jdk 7
>            Reporter: Christophe Vanfleteren
>            Assignee: Freeman Fang
>             Fix For: 2.3.3, 2.4.0, 3.0.0
>
>
> When using shell:exec, you don't see any output when the command you're executing is executing too fast.
> {code}
> karaf@root()> shell:exec ls
> bin
> data
> demos
> deploy
> etc
> instances
> lib
> LICENSE
> lock
> NOTICE
> README
> RELEASE-NOTES
> system
> karaf@root()> shell:exec ls
> karaf@root()> 
> {code}
> For example, using shell:exec ls doesn't return anything, but shell:exec du / does.
> Although, almost every time you first use shell:exec, you do get output on the console. If I add a Thread.sleep right before the p.waitFor in, it also consistently works.
> The cause must be related to the PumpStreamHandler.

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