Retrieve rdjexp return code

It might be necessary to retrieve the return code from rdjexp inside the environment that launches Docker commands.

To retrieve the return code, add the following command after the rdjexp call in the CMD part of the Dockerfile:

CMD ... &&../rdjexp && cd ../stn &&/ && exit $rdj_expret

This command runs a script that exports the return code as an environment variable. This way, the Rule Engine return code can be queried by $? in a shell.

Related Links