Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4654

Karaf shell command

    XMLWordPrintableJSON

Details

    • Question
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.4
    • 4.1.0, 4.0.6
    • karaf
    • None

    Description

      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

      Is the documentation outdated, and if so what's the new way to achieve the same result?

      Thanks.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            ShawnE ShawnE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: