Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make remote command shell act as a login shell
This commit adds a parameter to the run_command() method call. The value differs from the pssh's default '$SHELL -c' by adding '-l' to make the shell act as a login shell. This results in loading .bash_profile or .profile, depending on which shell it is and other circumstances. The reason to load a profile file is to set up environment, for example PATH. This is especially handy in environments where Python virtual envs are used. There, to use one, the user has to activate the env by sourcing a file.
- Loading branch information