I'm not sure if it's a quirk of the program I'm trying to run (amidelnx) or if it's something with the way some binaries in general function. Also, I've read this question but it is not the same as what I'm experiencing.
The binary runs fine when it's "./"ed in a local directory, but if I move it to /usr/bin and attempt to just type it like a regular command it fails with "30 - Error: Problem opening file for reading.".
I can also type an absolute path to it and that works, but not if I just type the command:
/usr/bin/amidelnx - works
cd /usr/bin;./amidelnx - works
mv /usr/bin/amidelnx /root; cd /root; ./amidelnx - works
mv amidelnx /usr/bin; amidelnx - does NOT work
Any ideas?
Type
which amidelnx
. It cached the binary location somewhere else in the path and tries to open it from there.Are you using a csh variant? If so, then placing a program into a directory in your path will not automatically appear until you issue the 'rehash' command. This seems to be the problem you are having.