I am getting error when calling OS command for Peoplecode using EXEC function. The call is like this
CommitWork();
&ShellCommand = "/path/mytest.sh param1 param2";
&ReturnCode = Exec(&ShellCommand, %Exec_Synchronous + %FilePath_Absolute);
The &ShellCommand is built using the path, executable and parameters to be passed as shown above. That command works fine when executed independently.
I keep getting error 255. Is there anything about the syntax? Does anybody have a tested or working example or any suggestion?