Question

5
Replies
83
Views
VinayR28 Member since 2017 10 posts
Anthem
Posted: 4 months ago
Last activity: 2 weeks 1 day ago

Execute shell script from PEGA

Hello ,

My requirement is to execute a shell script from PEGA 8.3.

I tried the below code and it is throwing vulnerable code detected error (Please see the SS). In order to resolve this I created a new DSS as mentioned in help article https://community.pega.com/sites/default/files/help_v83/procomhelpmain.htm#security/rule-security/configuring-java-injection-check-tsk.htm, but it did not seem to work. 

Code tried:

try{     new ProcessBuilder("/apps/Myshellscript.sh").start();   } catch(java.io.IOException ioEx) {   throw new PRRuntimeException(ioEx); }

***Edited by Moderator: Pallavi to update support request details***  

 

Pega Platform 8.3 Security Healthcare and Life Sciences SR Created
Share this page LinkedIn