Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ra/SAPHanaRA* - HANA_CALL - use defined execution shell #133

Open
PeterPitterling opened this issue Oct 24, 2022 · 0 comments
Open

ra/SAPHanaRA* - HANA_CALL - use defined execution shell #133

PeterPitterling opened this issue Oct 24, 2022 · 0 comments

Comments

@PeterPitterling
Copy link
Contributor

currently SIDadms login shell could be sh,bash and csh. Because of different default settings (e.g., expand_aliases) and shell behaviors, coding and testing is unnecessary complicated. The su command allows the specification of the executing shell. By providing a fixed shell (sh, bash) this would always provide a defined runtime environment.

su - SIDadm -s /bin/sh -c '(cd $DIR_INSTANCE/exe/python_support; python landscapeHostConfiguration.py)'
su - SIDadm -s /bin/bash -c '(cd $DIR_INSTANCE/exe/python_support; python landscapeHostConfiguration.py)'

https://man7.org/linux/man-pages/man1/su.1.html

-s, --shell=shell
Run the specified shell instead of the default. The shell to
run is selected according to the following rules, in order:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant