Page 1 of 3

Cant find custom shell files

Posted: Tue Aug 11, 2020 12:30 pm
by giel_4321
Following up our conversation
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.
What can we do in this scenario?

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 12:32 pm
by timurhai
How have you set PATH to see your nukeRender.sh for another user/shell?

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 12:33 pm
by giel_4321
Its already set in the PATH variable in etc/profile

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 12:41 pm
by timurhai
``/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.

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 12:48 pm
by giel_4321
sorry if i am asking too much.
If you login by afrender it will work
how can we do this?

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 1:25 pm
by timurhai
Yes, you can.
But much more better solution i described above.

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 1:36 pm
by giel_4321
Annotation 2020-08-11 190452.png
Annotation 2020-08-11 190452.png (91.47 KiB) Viewed 5177 times

This is how it should be?


I just source /etc/profile in that studio_vars

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 1:53 pm
by timurhai
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.

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 2:27 pm
by giel_4321
Yup i did that source the path to profile but still giving me same error

Re: Cant find custom shell files

Posted: Tue Aug 11, 2020 2:29 pm
by timurhai
What have you did, say step-by-step.
Have you restarted afrender service after it?