Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32D529CF3 for ; Mon, 18 Jun 2012 08:53:13 +0000 (UTC) Received: (qmail 27661 invoked by uid 500); 18 Jun 2012 08:53:12 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 27435 invoked by uid 500); 18 Jun 2012 08:53:07 -0000 Mailing-List: contact dev-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 dev@karaf.apache.org Received: (qmail 27406 invoked by uid 99); 18 Jun 2012 08:53:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 08:53:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gnodet@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 08:53:01 +0000 Received: by pbbrq8 with SMTP id rq8so8704787pbb.21 for ; Mon, 18 Jun 2012 01:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OqysyTKJjMZDdOCow7HcLIDDjScBfeT2a25N55v+0k4=; b=SevNwP7P8inMqbzOpHRCKyYWDycpxyrayYOzn0vBkr5L8oBGW5ZbYNFAyPYAK8n2N4 6MQZOXfBPYoMhRCa4fcq5bLQBMvkksV53OZCz40+KYL8i+/piILDvO8K/QCAVKlurNxv jpcF0xRo1NwFIqrLaofGg4NKPsaVv+Za+ew1QJxrA/+VI9hWz/6ADJ8Ffzt0w/h8+In9 VS8zT4F6gTTeu3gjj/uKfezwkZtHHQmXHLeXQ9XRf3eQONhp8XZYZnVV5SA2fgiACot7 +2uBv0pDgNxHzfZqbGQXNcwENv5GLfHLtTDRBJysgp6hY3FlocUvgB81w9Bn/xf7a3nT TD+A== MIME-Version: 1.0 Received: by 10.68.222.197 with SMTP id qo5mr38470195pbc.72.1340009561109; Mon, 18 Jun 2012 01:52:41 -0700 (PDT) Received: by 10.142.86.21 with HTTP; Mon, 18 Jun 2012 01:52:41 -0700 (PDT) In-Reply-To: References: <4FDE21BA.5010504@die-schneider.net> <4FDE371A.7030901@die-schneider.net> <4FDE38E1.7040801@nanthrax.net> Date: Mon, 18 Jun 2012 10:52:41 +0200 Message-ID: Subject: Re: When executing commands using karaf's bin/shell there is a huge delay before the command exits. From: Guillaume Nodet To: dev@karaf.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I don't have any problem with adding a System.exit() call, but if commands spawn threads, they should stop them cleanly anyway, so that's kinda indicating a bug somewhere to me. On Mon, Jun 18, 2012 at 10:31 AM, Ioannis Canellos wrote: > By the way if you want to take a closer look, I was working on this: > https://github.com/jclouds/jclouds-cli which is a jclouds interactive shell > based on karaf and I was trying to also add support for non interactive > mode. > > In the current master of the project, I use a modified version of the Main > class that uses a System.exit as a workaround. > -- > *Ioannis Canellos* > * > FuseSource > > ** > Blog: http://iocanel.blogspot.com > ** > Twitter: iocanel > * -- ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ FuseSource, Integration everywhere http://fusesource.com