help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] [newbie] non-interactive non-login bash shell


From: Pierre Gaston
Subject: Re: [Help-bash] [newbie] non-interactive non-login bash shell
Date: Thu, 10 Mar 2016 09:30:33 +0200

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]