Support
Forums

(Parts of) .profile not being recognised

Dell Latitude E5570 running Ubuntu 24.04 Following a re-installation of Ubuntu and all my files and odd bits of s/w, a remaining problem concerns the implementation of my scripts. I keep them in a directory called (for historical reasons)...

Dell Latitude E5570 running Ubuntu 24.04

Following a re-installation of Ubuntu and all my files and odd bits of s/w, a remaining problem concerns the implementation of my scripts. I keep them in a directory called (for historical reasons) .bin in my home directory, and I have added it to my .profile file so that the system can find it when one of its scripts is called.
As an inveterate photographer of my garden flowers I wrote a script to download the photos from my camera into a directory for later manipulation. The script is called photos_get and the dialogue goes like this:

keith@E5570:~$ photos_get
bash: /home/keith/.bin/photos_get: Permission denied (why, I don’t know)
keith@E5570:~$ sudo photos_get
sudo: photos_get: command not found

.…so checked the PATH environment variable:
keith@E5570:~$ echo $PATH
/home/keith/.bin/Reminders:/home/keith/.bin:/usr/local/sbin:…etc etc…
keith@E5570:~$

So it knows where to find the script despite telling me it can’t be found.
Advice would be welcome.

1 post - 1 participant

Read full topic