Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29C22FB85 for ; Tue, 9 Jul 2013 06:06:00 +0000 (UTC) Received: (qmail 46698 invoked by uid 500); 9 Jul 2013 06:06:00 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 45879 invoked by uid 500); 9 Jul 2013 06:05:51 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 45788 invoked by uid 99); 9 Jul 2013 06:05:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 06:05:49 +0000 Date: Tue, 9 Jul 2013 06:05:49 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Work started] (KARAF-2378) Shell:exec doesn't show output for commands that execute too quickly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on KARAF-2378 started by Freeman Fang. > 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 > > 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