What can we do in this scenario?CGRU does not set the environment system wide and does not override any PATH, just appends few own.
On your system different processes has different PATH variable.
This is not a CGRU issue. And not for github. It is a common system administration question.
Try to ask some forum.
You can even ask me on a CGRU forum.
Cant find custom shell files
Cant find custom shell files
Following up our conversation
Re: Cant find custom shell files
How have you set PATH to see your nukeRender.sh for another user/shell?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: Cant find custom shell files
Its already set in the PATH variable in etc/profile
Re: Cant find custom shell files
``/etc/profile`` is invoked only for login shells.
If you login by afrender it will work, when init.d or system.d runs services it does not perform login.
As i told before, you can create a custom setup_myvars.sh in a cgru root folder.
And you can modify there PATH or just source /etc/profile file.
Better to create one ``setup_studio.sh`` to modify PATH. And source it from profile and from cgru folder.
If you login by afrender it will work, when init.d or system.d runs services it does not perform login.
As i told before, you can create a custom setup_myvars.sh in a cgru root folder.
And you can modify there PATH or just source /etc/profile file.
Better to create one ``setup_studio.sh`` to modify PATH. And source it from profile and from cgru folder.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: Cant find custom shell files
sorry if i am asking too much.
how can we do this?If you login by afrender it will work
Re: Cant find custom shell files
Yes, you can.
But much more better solution i described above.
But much more better solution i described above.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: Cant find custom shell files
This is how it should be?
I just source /etc/profile in that studio_vars
Re: Cant find custom shell files
Do not modify native CGRU files!
It makes impossible to switch to the new version!
Here CGRU setup.sh sources any files matches setup_*.sh mask.
https://github.com/CGRU/cgru/blob/master/setup.sh#L25
So you should place any setup_abc.sh file and do anything you want with afrender environment.
It makes impossible to switch to the new version!
Here CGRU setup.sh sources any files matches setup_*.sh mask.
https://github.com/CGRU/cgru/blob/master/setup.sh#L25
So you should place any setup_abc.sh file and do anything you want with afrender environment.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: Cant find custom shell files
Yup i did that source the path to profile but still giving me same error
Re: Cant find custom shell files
What have you did, say step-by-step.
Have you restarted afrender service after it?
Have you restarted afrender service after it?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).