1
0
-1

Is it possibe to execute a shell script or command line prompt from a groovy service?

Use Case:

Client has "NDM +Secure" installed on the same server as Avoka TM. NDM is repsonsible for transferring the PDF Receipt from one server to another much like SFTP. Once I create the PDF I want to execute a shell command like this: Runtime.getRuntime().exec("send.sh filea fileb");

TM blocks the execution of "runtime" so I can't use the above command. 

Suggestions?

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi Brad,

      TM does not support executing shell scripts or Java processes via a Groovy service. This is an intentional security restriction to prevent the execution of malicious OS scripts or processes. 

      To achieve your objective you could write a OS shell script coupled with a cron job send these files using NDM.

      regards Malcolm 

        CommentAdd your comment...