Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Hi,

That's to do with how bash behaves in remote execute mode (what happens when run_command is called). In this case only .bashrc is read and not .bash_profile. Presumably some paths are set only in .bash_profile and so do not get set on run_command.

Either use an interactive shell which uses a login shell which does read .bash_profile, or set paths in bashrc or any other method.

See bash details here.

See also man bash and man ssh.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Roy-Kid
Comment options

Answer selected by pkittenis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #331 on December 14, 2021 13:15.