Re: [Users] bash_profile execution

2021-10-01 Thread Oleksiy Tkachenko
Just a follow up: latest update brought the .bash_profile execution back. That's good) пн, 5 лип. 2021 о 16:47 Oleksiy Tkachenko пише: > Maybe it depends on OS? > I always work with centOS only. 5-6-7 - always behavior was the same. > > However, I do not want to revert stng back or else - I'm

Re: [Users] bash_profile execution

2021-07-05 Thread Oleksiy Tkachenko
Maybe it depends on OS? I always work with centOS only. 5-6-7 - always behavior was the same. However, I do not want to revert stng back or else - I'm just looking for method to run some bash commands during "vzctl enter ..." сб, 3 лип. 2021 о 23:48 CoolCold пише: > Running login session was

Re: [Users] bash_profile execution

2021-07-04 Thread Dmitry Konstantinov
It's started a while back, don't remember the exact date. Anyway, 'vzctl enter CT' then 'crontab -e -u' in a cpanel container now uses nano, not vi(m). example: # vzctl enter 9371 entered into CT 9371 root@host [/]# grep PATH /root/.bash_profile PATH=$PATH:$HOME/bin export PATH root@host [/]#

Re: [Users] bash_profile execution

2021-07-03 Thread CoolCold
Running login session was never the case for me as well and this is _intentional_ and _expected_ behavior I wouldn't like to be changed. Quite strange it was a login shell for you somehow. On Fri, Jul 2, 2021 at 9:59 PM Oleksiy Tkachenko wrote: > > As I've said each time I access container from

Re: [Users] bash_profile execution

2021-07-02 Thread Konstantin Khorenko
On 07/02/2021 04:19 PM, Oleksiy Tkachenko wrote: I use openVZ since 2011 and bash_profile was always executed on all machines I have access to. It's even stored in my new server installation instructions) .bash_profile is not intended to be executed on "vzctl enter CT". Never was. Please

Re: [Users] bash_profile execution

2021-07-02 Thread Oleksiy Tkachenko
As I've said each time I access container from hardware node my bash_profile executed in the same way I ssh to that container. Which stop to happens after I perform update 1-2 days ago. Unfortunately, I update all servers at once and have no examples now. However - is there any way to get what I

Re: [Users] bash_profile execution

2021-07-02 Thread Oleksiy Tkachenko
I use openVZ since 2011 and bash_profile was always executed on all machines I have access to. It's even stored in my new server installation instructions) Now I'm confused - how to run set of commands when "vzctl enter CID" from HN? "su - " is not really a good option since it runs another

Re: [Users] bash_profile execution

2021-07-01 Thread jjs - mainphrame
That's odd. I've been using openvz since well, a long time. And as far as I can remember, doing "vzctl enter" has never sourced the login profile, since entering the CTin that fashion makes you basically sort of an unknown uid 0 entity. Jake On Thu, Jul 1, 2021 at 10:21 AM Oleksiy Tkachenko

Re: [Users] bash_profile execution

2021-07-01 Thread Oleksiy Tkachenko
but my bash_profile's were always executed before I run latest openVZ7 updates. that's the point) is that bug? чт, 1 лип. 2021 о 20:05 jjs - mainphrame пише: > It would run during an actual login. But entering the CT via vzctl enter > bypasses the normal login process. > > Jake > > On Thu, Jul

Re: [Users] bash_profile execution

2021-07-01 Thread jjs - mainphrame
It would run during an actual login. But entering the CT via vzctl enter bypasses the normal login process. Jake On Thu, Jul 1, 2021 at 9:55 AM Oleksiy Tkachenko wrote: > That's works fine. > But how to run that automatically during login? > > чт, 1 лип. 2021 о 18:19 jjs - mainphrame пише: >

Re: [Users] bash_profile execution

2021-07-01 Thread Oleksiy Tkachenko
That's works fine. But how to run that automatically during login? чт, 1 лип. 2021 о 18:19 jjs - mainphrame пише: > This works for me: > > su - > > Jake > > On Thu, Jul 1, 2021 at 8:03 AM Oleksiy Tkachenko > wrote: > >> I realize that bash_profile not executed automatically when "vzctl enter

Re: [Users] bash_profile execution

2021-07-01 Thread jjs - mainphrame
This works for me: su - Jake On Thu, Jul 1, 2021 at 8:03 AM Oleksiy Tkachenko wrote: > I realize that bash_profile not executed automatically when "vzctl enter > CID" now. > > How to execute it ? > Thank you! > > > -- > Olexiy > ___ > Users mailing

[Users] bash_profile execution

2021-07-01 Thread Oleksiy Tkachenko
I realize that bash_profile not executed automatically when "vzctl enter CID" now. How to execute it ? Thank you! -- Olexiy ___ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users