-
Hi, I have a question that. When I use SSHClient to connect to remote HPC, I find a lot of commands can not be found, such as 'qstat', Sorry for asking this silly question and hope you can help me. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, That's to do with how bash behaves in remote execute mode (what happens when Either use an interactive shell which uses a login shell which does read See also |
Beta Was this translation helpful? Give feedback.
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 onrun_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
andman ssh
.