2012/4/29 Sami Tikka <[email protected]>: > At this point I bow my head in front of all this simplicity and go read the > man page of the shell to find out where I have to place commands I want > executed for all shells, not just interactive login shells. (.bashrc?)
Now that I actually looked into it instead of trying to look smart, I discovered bash actually has no place from where it executes commands for non-interactive, non-login shell. Sorry. I think currently your best option is to add the environment variables you need to the slave configuration, which allows you to define environment variables for the slave. Another option would be to change the login shell for the account on the slave host which runs the slave. E.g. zsh has an initialization file, .zshenv, which is executed for all non-login, non-interactive shells too. Hope this helps, -- Sami
