Skip to content

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

@PeterPitterling

Description

@PeterPitterling

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions