Bash login shell #334
Unanswered
kriswuollett
asked this question in
Q&A
Replies: 1 comment
-
|
You probably also need |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I assume this question has more to do with
bashthan withrussh, but how would one get abashlogin shell which sources the user's.bashrc(Ubuntu 22.04).I've adapted
client_exec_simpleand running["shopt"]getslogin_shell off. Using["bash", "-l", "-c", "shopt"]getslogin_shell on. However if I try to run a command, like["bash", "-l", "-c", "my-app"]I get exit status 127. If I check with["bash", "-l", "-c", "echo $PATH"]it is clear the path for the command isn't in the list.If I just use the full path to
my-appit works fine.I've also tried running the channel
request_ptybeforeexecbut it doesn't seem to make a difference.Beta Was this translation helpful? Give feedback.
All reactions