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
-
I assume this question has more to do with
bash
than withrussh
, but how would one get abash
login shell which sources the user's.bashrc
(Ubuntu 22.04).I've adapted
client_exec_simple
and 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-app
it works fine.I've also tried running the channel
request_pty
beforeexec
but it doesn't seem to make a difference.Beta Was this translation helpful? Give feedback.
All reactions