Replies: 2 comments 1 reply
-
@wfezzani - if your used id has UID=0, then you are BPXROOT. No way around this ;) You can check if the home directory is set correctly. RSE API does not automatically run through your personal .profile, because it is not opening a SSH session. As indicated in the the rse configuration, you can configure and extend PATH and add your git directories.
Additionally, you may want to check the RSEAPI configuration. Alternatively, you can always execute your profile first:
How this helps you to resolve it. To ask for the RSE API plugin, you might want to raise a question in the Slack channel of ZOWE CLI in the openmainframeproject. |
Beta Was this translation helpful? Give feedback.
-
Hi Dennis, thank you for your feed back |
Beta Was this translation helpful? Give feedback.
-
Hello
It seems that when ZOWE CLI with RSE API to run USS commands, it doesn't retrieve the PATH environment variable of the user who submits the command. ZOWE CLI seems apparently to use another user BPXROOT instead of the TSO user and it inherits the PATH env variable of that user. Moreover, theoretically the .profile file of the BPXROOT user (if it exists because I can't find it) is not supposed to be modified to edit the PATH env variable.
This can be a real limitation when we want to execute the common backend scripts like gitClone.sh if the PATH variable doesn't include the git program.
In my opinion the ZOWE framework doesn't include yet the new RSE API: /rseapi/api/v1/unixcommands/shellcommand
and still uses /the API: rseapi/api/v1/unixcommands
To make it work we need to source the .profile content in every Zowe command.
Here is an exemple for git command:
and for whoami command:
Beta Was this translation helpful? Give feedback.
All reactions