'Shell script cannot call some commands when starting up Ubuntu 16.04 [closed]

I am trying to run a set of shell scripts at login on a virtual install of Ubuntu 16.04.

I have added the shell scripts in ~/.bashrc and they load just fine, most of the script just run a few terminal commands, but one them calls in other programs – this script is the problem, it fails to see the program as installed "command not found".

When I run the same script from command line it works just fine.

Any guidance would be appreciated.



Solution 1:[1]

As pointed out above, my script was running before PATH was set. Adding the required PATH to the script allows it to run.

PATH = $PATH:<my_path>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 benno