Topic Resolution: Answered

Schlagwörter: ,

Ansicht von 1 Antwort-Thema
  • Autor
    Beiträge
    • #13748
      Answered
      giulino-lenzi
      Teilnehmer

        Hi everyone

        is there an example of a complete command using (i.e.: with argument)

        otobo.Console.pl Maint::Config::Dump  ?

        I am unable to guess which argument I can use with Maint::Config::Dump, and which syntax it needs.

        Unfortunately I am not able to find a sample in the manual also :-(

        Thank you

        Julian

         

         

      • #13749
        Best Answer
        bes
        Teilnehmer

          Hello Julian,

          help for console commands is printed when the option -h is passed.

          $ bin/otobo.Console.pl Maint::Config::Dump -h

          Dump configuration settings.

          Usage:
          otobo.Console.pl Maint::Config::Dump name

          Options:
          [–help|h] – Display help for this command.
          [–no-ansi] – Do not perform ANSI terminal output coloring.
          [–quiet] – Suppress informative output, only retain error messages.

          Arguments:
          name – Specify which config setting should be dumped.

          A sensible example would be:

          $ bin/otobo.Console.pl Maint::Config::Dump ACL::CacheTTL
          3600

          Unfortunately the output is not helpful at all for more complex settings:

          $ bin/otobo.Console.pl Maint::Config::Dump Loader::Module::AgentTicketProcess
          002-ProcessManagement=HASH(0x562abcf20c10);

          In my opinion this should be changed to print JSON per Default. I have created a feature request for that: https://github.com/RotherOSS/otobo/issues/1948.

          Best regards,

          Bernhard

           

           

           

           

           

           

           

           

          • #13760
            giulino-lenzi
            Teilnehmer

              Thank you BES.

              Your examples helped me to understand what kind of ARGUMENT is required.

              Now I also understand why I get “not found” even if the argument is correct.

              Thank you again !!!!

              Julian

               

        Ansicht von 1 Antwort-Thema
        • Du musst angemeldet sein, um auf dieses Thema antworten zu können.