On Thu, Mar 10, 2016 at 9:12 AM, Divya Thaluru <address@hidden> wrote:
> Hi,
>
> I want to source /etc/profile automatically if I execute a command through
> ssh, which is non-interactive and non login shell. Is there a way to
> achieve this? I really appreciate your help.
>
> ssh address@hidden 'echo "import os; print os.environ;" | python'
>
>
> Thanks,
>
> Divya
>
Depending on your system, .bashrc might be sourced see:
http://mywiki.wooledge.org/DotFiles