The Karaf 4 documentation mentions the ability to script:
It’s possible to create objects to create commands "on the fly":
karaf@root()> addcommand system (($.context bundle) loadClass java.lang.System)
However this does not work, and displays the following error message:
Command not found: addcommand
How to fix it ?
Thanks.