I encountered some weird bahavior on my linux system. I created some bash script files, and changed their mode to be executable. However, some can be called and executed, while others can not (with err msg of command not found). As a result, I had cp a file based on the one which was able to be found and executed, then replaced the newly created file with the contents from a file which could not be executed as an ugly work around. It worked for me, but just want to know what caused this problem. It would be great if anyone know a quick fix since this problem is recurring.
For example, you can see the system is able to run blastem, but not bbrBlas
[c052308@sander ~]$ /home/c052308/bbrBlas -d ./BBR -l pt -p prior.txt -r
/home/c052308/bbrBlas: Command not found.
[c052308@sander ~]$ ./blastem
[c052308@sander ~]$ ./bbrBlas
./bbrBlas: Command not found.
[c052308@sander ~]$ ls -l bbrBlas blastem
-rwxr-xr-x 1 c052308 sashare 3108 Aug 18 17:03 bbrBlas
-rwxr-xr-x 1 c052308 sashare 798 Aug 12 12:06 blastem