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 while others can not. As a work around, I had to copy the file that's executable and replace its contents with what's from the file couldn't be executed. It worked for me, but just want to know what caused this problem. For sure it's not the path issue since other files in the same directory can be called. It's not because of file not executable either, since I made sure for that. 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