Cant find custom shell files

General discussions and questions.
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Cant find custom shell files

Post 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?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

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).
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

Its already set in the PATH variable in etc/profile
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

sorry if i am asking too much.
If you login by afrender it will work
how can we do this?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

Yes, you can.
But much more better solution i described above.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

Annotation 2020-08-11 190452.png
Annotation 2020-08-11 190452.png (91.47 KiB) Viewed 5092 times

This is how it should be?


I just source /etc/profile in that studio_vars
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

Yup i did that source the path to profile but still giving me same error
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

What have you did, say step-by-step.
Have you restarted afrender service after it?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply