web stats
Mirth Shell update - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2017, 08:35 AM
mbrazi mbrazi is offline
Mirth Newb
 
Join Date: Dec 2016
Posts: 15
mbrazi is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 08-27-2017, 04:30 PM
pacmano pacmano is offline
OBX.2 Kenobi
 
Join Date: Oct 2009
Location: Texas
Posts: 94
pacmano is on a distinguished road
Default

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.
__________________
Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
Diridium Technologies, Inc.
https://diridium.com

Last edited by pacmano; 08-27-2017 at 04:46 PM.
Reply With Quote
  #3  
Old 08-28-2017, 01:22 AM
mbrazi mbrazi is offline
Mirth Newb
 
Join Date: Dec 2016
Posts: 15
mbrazi is on a distinguished road
Default

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?
Reply With Quote
  #4  
Old 08-28-2017, 02:17 AM
mbrazi mbrazi is offline
Mirth Newb
 
Join Date: Dec 2016
Posts: 15
mbrazi is on a distinguished road
Thumbs up

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?
Reply With Quote
  #5  
Old 08-28-2017, 08:07 AM
pacmano pacmano is offline
OBX.2 Kenobi
 
Join Date: Oct 2009
Location: Texas
Posts: 94
pacmano is on a distinguished road
Default

Works for me like below.


Code:
pcoyne@virtual:/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
Reply With Quote
Reply

Tags
command line, import channel, mirth 3.4.2, mirth shell

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation