LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Out of guesses! (shell Script issue) (https://www.linuxquestions.org/questions/linux-general-1/out-of-guesses-shell-script-issue-9906/)

chris 12-10-2001 03:42 PM

Plesae disregard this post... my mistake
 
Hi guys and gals,

Here's the situation at hand, I was working on a shell script to basically backup files from an smb share and it was working just great. I then wanted to mv it to /usr/bin in order to be able to execute it from anywhere. However when I did that something strange happened. I wasn't able to run the script as it would say "no such file or directory". The file was in fact there and it was chmoded u+x and yet still this message. I even redid the script and saved it elsewhere and still the error. I really don't know what happened but I would really like some feedback from anyone who may know what the problem is.

Thanks!

zhenwu 12-10-2001 04:15 PM

This is likely not the answer, but have you tried (as root) to

updatedb ?

Give it a try.

acid_kewpie 12-10-2001 04:20 PM

updatedb will certainly have no effect, that's just used for locates etc... not for exectuing programs.

are you sure your rights are still ok? what does 'ls -l /usr/bin/filename' say? does the filename autocomplete with tab?

It might be the case of the 'file not found' coming from inside the code, not the file itself. does it use and relative paths or such like?


All times are GMT -5. The time now is 01:55 PM.