Announcement

Collapse
No announcement yet.

rtf to pdf using shell script:

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

  • rtf to pdf using shell script:

    I have a shell script and if I run it manually I am getting correct output i.e pdf.
    However if I try to invoke same shell script using bat file through Mirth getting encoded content(may be base64) not exact result.

    bat file code:

    PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command D:\RTF-PDF3\convert\rtf2pdf_v3.ps1"
    DEL *.rtf


    Here:
    rtf2pdf_v3.ps1 ...... I have exact logic to convert rtf to pdf.

    Code in mirth's source connector:

    var pr = java.lang.Runtime.getRuntime().exec("D:\\RTF-PDF3\\convert\\convert.bat");
    var thread = new java.lang.Thread(new java.lang.Runnable({run:function(){while(pr.getInp utStream().read()!=-1);}}));
    thread.start();
    while(pr.getErrorStream().read() != -1);
    thread.join();
    pr.waitFor();


    Mirth version: 3.5.1

    Can someone help me to run bat file using Mirth connect.

    Thanks in advance!!

  • #2
    This may help: https://www.mirthcorp.com/community/...7649#post47649
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


    - How do I foo?
    - You just bar.

    Comment

    Working...
    X