I have a requirement where I need to execute a shell script from Pega. This shell script exists on the Pega server/box and takes multiple(5-five) parameters. I have found below piece of Java Code on this forum which has been accepted as correct answer. But when I am trying to use this for my requirement I face below problems or have below questions. Any help is most appreciated
Clarifications needed for below Code:
1. When I try to save this code as is in Java step in an activity I get - "File cannot be resolved to a type"
2. In the 1st line as I see the name of the shell script and arguments are being passed. As in my case the script takes 5 parameters. How should I pass these? And what about the sequence of parameters?
3. Also I did not understand below part. What do I need to add to the Map env?
As I understand from your code above you are running a command on command prompt. In my case I have to use the ProcessBuilder api to run the script. I am not aware how do I run the script with multiple parameters. If you have any idea about that kindly let me know.