Re: karaf shell history ( command line completion ) not working on linux

2011-05-27 Thread thomasrynne
I no history between sessions and an empty ~/.karaf directory on linux
(ubuntu) too.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/karaf-shell-history-command-line-completion-not-working-on-linux-tp2957256p2991948.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Disable automatic bundle restart?

2011-05-27 Thread Jean-Baptiste Onofré
Hi Thomas,

In the etc/org.apache.felix.fileinstall-deploy.cfg, you can add someproperties 
to fileinstall such as:

felix.fileinstall.dir to add a directory where you can put your bundle
felix.fileinstall.filter to exclude your bundle
felix.fileinstall.bundles.new.start to define if you want to auto install 
discovered bundles

Anyway, I advice you to take a look on Karaf features. Using a features 
gathering your bundles, you will be able to install it by hand, or to start 
automatically at startup (defining your feature in the featuresBoot of 
etc/org.apache.karaf.features.cfg file).

Regards
JB


On Fri 27/05/11 08:56 , thomasrynne  wrote::

Yes, I am using the deploy folder. Thanks, that explains it.
I googled for a fileinstall option to disable this feature but didn't find
anything.
At least I undersand it now.

thanks.

Btw, I am impressed by karaf it has made it much easier to learn osgi.
I only found it through a comment on stackoverflow when looking for an osgi
shell with autocomplete.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Disable-automatic-bundle-restart-tp2986102p2991946.html
Sent from the Karaf - User mailing list archive at Nabble.com.





Re: Programmatically connecting to the console does not work with long command

2011-05-27 Thread dstieg1
Taking a closer look at the bigger example on
http://svn.apache.org/repos/asf/karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java

I tried ((ChannelShell) channel).setupSensibleDefaultPty();
but that didn't work as it gave the default dimensions.

I finally ending up using the following: (where String command is the
command to be executed):

final int commandLengthInBytes = command.getBytes();
((ChannelShell) channel).setPtyColumns(commandLengthInBytes +
(commandLengthInBytes/5));

I could not use the exact command size in bytes or +1 as that still failed.
I settled on adding a fifth more to the command byte length which seemed to
work nicely. It would be nice if anybody can give an insight as to why there
must be the extra columns for the command to be executed correctly.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Programmatically-connecting-to-the-console-does-not-work-with-long-command-tp2992927p2993851.html
Sent from the Karaf - User mailing list archive at Nabble.com.