Announcement

Collapse
No announcement yet.

Mirth Shell update

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mirth Shell update

    I checked documentation in http://www.mirthcorp.com/community/w...p0/Mirth+Shell but I think these steps are related to an old version of mirth connect (because I didnt find shell-launcher.jar file in the version 3.4.2 that I use currently).
    Can you please provide me updated steps for Mirth Shell, especially importing channels by command line?

  • #2
    mccomand work for you? (I am obviously on Linux below and the mirth cli tools are installed which are not installed with the base package, download from https://www.mirth.com/Downloads)

    login:

    Code:
     ./mccommand -a https://localhost:8443 -u username -p password
    type "help" after logging in, it returns a list, I think you need:

    Code:
    import "path" [force]
    	Imports channel specified by <path>.  Optional 'force' overwrites existing channels.
    Last edited by pacmano; 08-27-2017, 03:46 PM.
    Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
    Diridium Technologies, Inc.
    https://diridium.com

    Comment


    • #3
      it gives me "import: command not found" and I search for import but I couldn't find it with the other commands in "help", suggestions?

      Comment


      • #4
        Acctually I found the answer in Mirth Connect API, that provide the method POST for channels, so when I want to import a channel I will call the API so it will create new one, in this case API itself manage duplicate channels and other errors, In this case another call to deploy the channel using the API will complete the task of deploy. Can someone confirm my solution?

        Comment


        • #5
          Works for me like below.


          Code:
          [email protected]:/opt/Mirth Connect$ ./mccommand -a https://localhost:8443/ -u admin -p apassword
          Connected to Mirth Connect server @ https://localhost:8443/ (3.5.0.8232)
          $import /VM/junk_channel.xml
          Channel 'Junk Channel' imported successfully.

          API is another way to go of course
          Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
          Diridium Technologies, Inc.
          https://diridium.com

          Comment

          Working...
          X