[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] [newbie] non-interactive non-login bash shell
From: |
Divya Thaluru |
Subject: |
Re: [Help-bash] [newbie] non-interactive non-login bash shell |
Date: |
Wed, 9 Mar 2016 23:36:57 -0800 |
Hi Pierre,
I was not able to find special compile time option. what is this option?
>From the url,
Bash has a special compile time option that will cause it to source the
.bashrc file on non-login, non-interactive ssh sessions. This feature is
only enabled by certain OS vendors (mostly Linux distributions). It is not
enabled in a default upstream Bash build, and (empirically) not on OpenBSD
either.
I was not able to find special compile time option. what is this option?
Thanks,
Divya
On Wed, Mar 9, 2016 at 11:30 PM, Pierre Gaston <address@hidden>
wrote:
>
>
> 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
>
>
>
Re: [Help-bash] [newbie] non-interactive non-login bash shell, Bob Proulx, 2016/03/10