0

When I use SSHOperator to execute the command on the remote server with the user. But it can't use the proper system environment, I think it didn't source the /etc/profile or ~/.bashrc.

This issue is kind of annoying, for example, I have to write the absolute path of the Python interpreter everywhere. Is there any ways to avoid this.

halfer
  • 19,471
  • 17
  • 87
  • 173
DennisLi
  • 3,470
  • 5
  • 23
  • 51
  • See [Some Unix commands fail with “ not found”, when executed using Python Paramiko exec_command](https://stackoverflow.com/q/55419330/850848). – Martin Prikryl Oct 13 '19 at 14:38
  • @Martin Prikryl Thanks Martin. – DennisLi Oct 14 '19 at 06:06
  • Possible duplicate of [Some Unix commands fail with " not found", when executed using Python Paramiko exec\_command](https://stackoverflow.com/questions/55419330/some-unix-commands-fail-with-command-not-found-when-executed-using-python-p) – Martin Prikryl Oct 16 '19 at 07:23

0 Answers0