Ok, I replaced an RPM package with a newer version of the same app, complied from source. The app works fine if you use the full path, but if you jsut use the executable name, it only looks in one directory and fails to find it. See below:
[root@host directory]# echo $PATH
/usr/local/sbin:usr/local/bin:/sbin:/bin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@host directory]# find / -name mogrify
/usr/local/bin/mogrify
[root@host directory]# mogrify
bash: /usr/X11R6/bin/mogrify: No such file or directory
Why won't it find my file?
it runs if I do "/usr/local/bin/mogrify" but not if I just do "mogrify"... WTH?
[root@host directory]# echo $PATH
/usr/local/sbin:usr/local/bin:/sbin:/bin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@host directory]# find / -name mogrify
/usr/local/bin/mogrify
[root@host directory]# mogrify
bash: /usr/X11R6/bin/mogrify: No such file or directory
Why won't it find my file?
it runs if I do "/usr/local/bin/mogrify" but not if I just do "mogrify"... WTH?