Return-Path: Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: (qmail 6906 invoked from network); 13 Apr 2010 12:05:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Apr 2010 12:05:34 -0000 Received: (qmail 85909 invoked by uid 500); 13 Apr 2010 12:05:33 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 85874 invoked by uid 500); 13 Apr 2010 12:05:33 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 85866 invoked by uid 99); 13 Apr 2010 12:05:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 12:05:32 +0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gnodet@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-wy0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 12:05:28 +0000 Received: by wyb33 with SMTP id 33so754484wyb.22 for ; Tue, 13 Apr 2010 05:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=iz7tM98yWMuqq/S7TZrUJbpv06xciJ/NMiHOxpK77nA=; b=O4yq73rx5k8wox4qmts26+ILRaGuc0BDoSK5XCGhYqghYwJImUAc90bJfV/4lkUZ0s XAJONa4PhWqnNwP75nzNK698dly3gX4WF98Qt6jn3ewwD3T3Jr10o6j5nXR+p6ieFTvm 0NQxhEowsJLeSMCdrbdjj+aglf8KcCqnmZ7yE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IpTbYfeQt2LWoxTjhheXH+//SJT+QNDFfOrkdiNZ4O/IzOa64LTFXR3+xMIKVBYI+5 SswXnsmW8CAY+EJAkKUbywautckY30j0RE39L4q3X31JV5iwjWGXN4GFmh7fMPbnupep PbqHDRsq6jP91m1C51E0PirfGgoNVwQwZ6qf4= MIME-Version: 1.0 Received: by 10.216.45.198 with HTTP; Tue, 13 Apr 2010 05:05:06 -0700 (PDT) In-Reply-To: <09C44065E0310A4E9EEC1B858A0C342A29B1EEA74E@GRPGTIMAILBOX.groupgti.net> References: <09C44065E0310A4E9EEC1B858A0C342A29B1EEA74E@GRPGTIMAILBOX.groupgti.net> Date: Tue, 13 Apr 2010 14:05:06 +0200 Received: by 10.216.157.1 with SMTP id n1mr2206400wek.141.1271160306655; Tue, 13 Apr 2010 05:05:06 -0700 (PDT) Message-ID: Subject: Re: Scripting felix From: Guillaume Nodet To: users@felix.apache.org Content-Type: multipart/alternative; boundary=0016367fb6c187e37904841d12d7 --0016367fb6c187e37904841d12d7 Content-Type: text/plain; charset=ISO-8859-1 Are you trying to have karaf automatically installed as a service using wrapper:install ? The problem is that you need to launch it the first time in order to install and launch the commands. It might be possible do have that done from the outside: we already do that for the etc/admin shell which calls a java class which in turn delegate to the admin commands. Having the same mechanism for the wrapper command could make sense too, or maybe we could move the wrapper command into the admin shell or something like that. Anyway, I think it's the best way for you. On Tue, Apr 13, 2010 at 13:24, Jim Talbut wrote: > Hi, > > I'm new to OSGi and felix, so forgive a silly question. > > I need to set up a few felix/karaf/camel instances and I need them all to > be identical. > To achieve this I want to script the instructions for karaf, but I can't > find any way to get an external file of instructions to run in karaf. > Is there any kind of batch facility in karaf, or a bundle to provide that > ability? > > The nearest I've got is sshing in to karaf and running one command at a > time, but that requires me to enter the password with each connection. > Is it possible to configure the ssh daemon in karaf with an authorized_key? > > I know I can provision facilities using > org.apache.felix.karaf.features.cfg, but that doesn't (for example) let me > run wrappers:install after the bundle is activated. > I also tried adding commands to shell.init.script, but that doesn't run > wrappers:install either. > > Thanks > > Jim > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --0016367fb6c187e37904841d12d7--